Hosted InfoPath 2007 in Winform - Web Service Connection TImeout

T

TC

I have a InfoPath 2007 form, hosted inside a Windows form application. The
form allows attachments. When attachments are incorporated into the form and
posted to an external ( non Sharepoint) Soap service, the transaction
occaisionaly times out depending on the size of the file.

How can I extend the timeout parameter?

Thanks
 
T

TC

It looks as though the answer is as follows:

Create a copy of the datasource. Modify the timeout parameter of the copied
datasource. Execute the query on the copy as below, seems to be working;


/// Control the timeout parameter - bump it up to 120.
DataSource ds = formControl1.XmlForm.DataSources[0];
WebServiceConnection wc = (WebServiceConnection)ds.QueryConnection;
wc.Timeout = 120;
wc.Execute();
 

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