Click here to Skip to main content
15,891,828 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
Hi,

I have a web service I'm calling and upon investigation I see the creation of the client is taking about 0.5-1 second alone. This is using web reference .net 2.0.

SomeWS.SomeWSSoapClient client = new SomeWS.SomeWSSoapClient(); // takes 0.5-1 seconds

Is this normal? Is it fetching something from the service endpoint that I can stop?

I compared it to adding via a service reference and while the client takes a short time to instantiate (0.2 secs) the call takes a lot longer and the overall time is longer.

What can I do to speed up the instantiate time? Which method should be quicker?

thanks a lot!
Ash
Posted
Updated 4-Aug-15 0:16am
v3

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900