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>

Re: Unable to connect with web service first time. by Isaias

Isaias
Thu Jan 22 10:28:16 CST 2004

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

"P" <patrik@objektor.se> wrote in message
news:uSU9DJN4DHA.876@TK2MSFTNGP10.phx.gbl...
> 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>
>
>



Re: Unable to connect with web service first time. by Joe

Joe
Thu Jan 22 18:07:07 CST 2004

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

--
Joseph L. Hanna
Advanced Software Engineering


"P" <patrik@objektor.se> wrote in message
news:uSU9DJN4DHA.876@TK2MSFTNGP10.phx.gbl...
> 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>
>
>



Re: Unable to connect with web service first time. by Isaias

Isaias
Thu Jan 22 18:34:36 CST 2004

Yup, that's a very good solution for instantiating a webservice.

Isaias

"Joe Hanna" <zorro@msdn.com> wrote in message
news:OiGuMSU4DHA.876@TK2MSFTNGP10.phx.gbl...
> 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
>
> --
> Joseph L. Hanna
> Advanced Software Engineering
>
>
> "P" <patrik@objektor.se> wrote in message
> news:uSU9DJN4DHA.876@TK2MSFTNGP10.phx.gbl...
> > 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>
> >
> >
>
>