<?xml version="1.0" encoding="UTF-8" ?>
<?xml-stylesheet type="text/xsl" href="https://www.infopathdev.com:443/utility/FeedStylesheets/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Code</title><link>https://www.infopathdev.com:443/forums/45.aspx</link><description /><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Infopath 2003 - Timeout with Submitting data to webservices</title><link>https://www.infopathdev.com:443/forums/thread/32364.aspx</link><pubDate>Fri, 19 Sep 2008 07:54:13 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32364</guid><dc:creator>collinvermeulen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32364.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32364</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I have resolved the issue. The Submit data connections are only available in the DataAdapters in the OnSubmitRequest event. The suggested code is working fine.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: Infopath 2003 - Timeout with Submitting data to webservices</title><link>https://www.infopathdev.com:443/forums/thread/32333.aspx</link><pubDate>Thu, 18 Sep 2008 13:07:28 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32333</guid><dc:creator>Shiva</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32333.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32333</wfw:commentRss><description>&lt;p&gt;Hello,&lt;/p&gt;
&lt;p&gt;Can you try below the code once&lt;/p&gt;
&lt;p&gt;WebServiceAdapter2 test = thisXDocument. DataAdapters[&amp;quot;DeleteForecast&amp;quot;];&amp;nbsp; &lt;/p&gt;
&lt;p&gt;test.Query();&lt;/p&gt;
&lt;p&gt;test.Timeout = 200;&lt;/p&gt;</description></item><item><title>Infopath 2003 - Timeout with Submitting data to webservices</title><link>https://www.infopathdev.com:443/forums/thread/32294.aspx</link><pubDate>Wed, 17 Sep 2008 04:28:01 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:32294</guid><dc:creator>collinvermeulen</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/32294.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=45&amp;PostID=32294</wfw:commentRss><description>&lt;p&gt;Hey there,&lt;/p&gt;&lt;p&gt;I have created quite a complicated Infopath form. It uses multiple Retrieve and Submit webservices to receive and submit data to the database with webservices. Some of the Submit data connections take a long time as it generates lots of records based on the data input. This might take longer than 30 seconds. I have read thru many forums and stuff, but have not found my answer.&lt;/p&gt;&lt;p&gt;I have changed the executionTimeout in the web.config file on the webservices, but it seems like Infopath 2003 is still overriding this value with his own default timeout 30 seconds.&lt;/p&gt;&lt;p&gt;I am able to change the timeout for Retrieve data connections with the following code: &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;i&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WebServiceAdapter2 test = thisXDocument.DataObjects[&amp;quot;DeleteForecast&amp;quot;].QueryAdapter as WebServiceAdapter2;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; test.Timeout = 200;&lt;/i&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Unfortunately the Submit data (objects) connections are not part of the DataObjects, so I can;t use this piece of code.&lt;/p&gt;&lt;p&gt;Is there a way of changing the timeout for submit connections?&lt;/p&gt;&lt;p&gt;Thanks,&lt;/p&gt;&lt;p&gt;Collin &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>