I am using a web service from a url. When I test using SoapUI, I immediately get a response (see image below) and that the request data that I sent went to the other end.
So, in my C # application, I did the same thing, I used the wsdl web service and automatically created a proxy class. I create a request based on this proxy class with the same request data that I used in SoapUI and sent. I confirmed that, on the other hand, they successfully received my data, and there were no errors.
However, I never get any identifier, and after a while I get this exception:
Error HTTP request to http://someURLWebservice.com/WSoperation 'exceeded the allocated timeout 00: 00: 59.9470000. The time allotted for this operation may have been part of a longer timeout.
Am I missing something? I downloaded WSDL and generated the mock service using SoapUI, and if I make a call to this web service layout locally, I will return it right away. The ID back.
Here is my code:
string serverURL = Settings.Default.ExtensionServiceURL; //Get Proxy class client ext.ExtWSPortTypeClient client = new ext.ExtWSPortTypeClient(); EndpointAddress addr = new EndpointAddress(serverURL); try { client.Endpoint.Address = addr; Uri site = new Uri(serverURL); client.Endpoint.ListenUri = site; ExtensionData eData = new ExtensionData(); client.ChannelFactory.CreateChannel(); Console.WriteLine("Sending Locator Event Request to Web Service"); ext.locatorEventResponse1 resp = await client.locatorEventAsync(eData.GenerateLocatorEventRequest(ev)); } catch (Exception ex) { Console.WriteLine("Error " + ex.Message); } finally { if (client != null) { ((ICommunicationObject)client).Close(); } }

Fylix source share