Web Service Timeout

M

MarieLo

Hi,
I want to request data from a web service. I know that the web service
needs around 2 minutes to process data from our database.
I followed the instructions on how to increase the Web service timeout (C#):
myAdaptor = (WebServiceAdapter2)thisXDocument.DataAdapters["GetRelation"];
myAdaptor.Timeout = 300;
myAdaptor.Query();

The first time the form goes through this code, I will still get the timeout
error. The second time, the query will complete as expected.

Can someone give me a clue on what the problem could be ?

Thanks !
Marie
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top