I have been consuming a Java Web Services in .net 3.5 but I have seen a lack of performance during the first time the web service proxy is created.
I Added the WebService reference using Add Service reference feature. At this point the WebService reference is created, the next step is to create a proxy instance to consume the Web Service.
The enpoind that I have been using (let's say is is http://crdevelopment/services/SalesService) contains 250 soap methods.
So when I try to consume a single WebMehod , ie getCustomersLocation
, I do the following line of code
var serviceResult = new SalesProxy(http://crdevelopment/services/SalesService?wsdl);
This line takes long time, I'm assuming it is because the endPoint does has a lot of web methods.
Then , I consume the method
var customerLocations = serviceResult .getCustomersLocation("San Jose").
The execution of the Web Method does not take time, but the proxy creation does.
My question is, Why is the proxy object instance taking long time , even when I have added the Web Service reference and the proxy must have been created?
Does that make sense for you?