Unable to connect with web service first time.

  • Thread starter Thread starter P
  • Start date Start date
P

P

Hi.
Im using web services and my two questions are the following:
1. The first time the web service is called it always seems to generate a
"Culd not connect to remote server". Any calls after that goes fine.
2. If connection is available then the first call to a web service is much
slower than calls after that. Is this to be expected? Are there workarounds.

Note: Im using Visual Studio .NET 2003 and the emulator only to try this.
Haven´t tried his on a real piece of hardware yet.

Regards

<P>
 
Try increasing the webservice's timeout, the first time you run it, it runs
slower than the next times since the first time loads it to memory, also the
emulator is pretty slow, so you might not experience the same thing on a
real pocket pc.

Hope this solves the problem,

Isaias Formacio Serna
 
I too have experienced this. My first Method call can take up to 10-12
seconds where subsequent ones can take only 1 second. I do not want the
user to put up with the delay of the first call so I fire off a dummy call
on a background thread when the application fires up. Works fine and the
users are happy.

HTH
Joe
 
Back
Top