I am trying to interface with the ebay API in C#. The sample code in C# that they give to get the time works fine. This seems to be using a "web reference" in VS (I'm using 2008 Express).
When I have a go by adding a "service reference" to my project I have to use the eBayAPIInterfaceClient
in the following way (I can't find a reference to any ebayAPIInterfaceService
like their example uses):
eBayAPIInterfaceClient client = new eBayAPIInterfaceClient();
CustomSecurityHeaderType credentials = new CustomSecurityHeaderType();
credentials.Credentials = new UserIdPasswordType();
credentials.Credentials.AppId = AppSettings.EbayAppID;
credentials.Credentials.DevId = AppSettings.EbayDevID;
credentials.Credentials.AuthCert = AppSettings.EbayCertID;
credentials.eBayAuthToken = AppSettings.EbayToken;
GeteBayOfficialTimeRequestType ebayTimeReq = new GeteBayOfficialTimeRequestType();
ebayTimeReq.Version = "551";
GeteBayOfficialTimeResponseType response = client.GeteBayOfficialTime( ref credentials, ebayTimeReq );
Anyway, it doesn't work (obviously I am using the same settings such as AppID, token etc.). It gives me back:
com.ebay.app.pres.service.hosting.WebServiceDisabledException: The web service eBayAPI is not properly configured or not found and is disabled.
Any ideas? I mean I'm assuming I'm not doing anything really dumb here :)