ajoy mandal

ajoy mandal

  • NA
  • 176
  • 1.6k

Code not working in WindowsService using eBay.Services

Jun 30 2016 8:38 AM
I'm using eBay.Services to find items.
The code is as bellow
        eBay.Services.Finding.FindingServicePortTypeClient client;
        ClientConfig config = new ClientConfig();
        config.EndPointAddress = "http://svcs.ebay.com/services/search/FindingService/v1";
        config.ApplicationId = "xxxxx-xx-xxx-xxxxxxxxx-xxxxxxxx";
        client = FindingServiceClientFactory.getServiceClient(config);
This code working fine in my .net website but not working in my WindowsService
'client.State' is showing 'Created' in website,
whereas
'client.State' always showing 'Faulted' in WindowsService.
'client.InnerChannel' threw an exception of type 'System.ServiceModel.CommunicationObjectFaultedException'
Please suggest.

Answers (1)