1
Answer

Code not working in WindowsService using eBay.Services

ajoy mandal

ajoy mandal

8y
1.7k
1
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)