<?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>Web Services</title><link>https://www.infopathdev.com:443/forums/48.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Web Service timed out</title><link>https://www.infopathdev.com:443/forums/thread/17781.aspx</link><pubDate>Wed, 08 Nov 2006 14:37:29 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17781</guid><dc:creator>dgibson5531</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17781.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17781</wfw:commentRss><description>How do you increase the "InfoPath" timeout ?</description></item><item><title>Re: Web Service timed out</title><link>https://www.infopathdev.com:443/forums/thread/17780.aspx</link><pubDate>Mon, 20 Feb 2006 18:29:25 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17780</guid><dc:creator>fredarwin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17780.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17780</wfw:commentRss><description>vt_asparagus,&lt;br /&gt;u can give fast acceleration to your active directory search&lt;br /&gt;(i am query about 1000 people in my domain in just 4 seconds)&lt;br /&gt;using the following code:&lt;br /&gt;&lt;br /&gt;System.DirectoryServices.DirectoryEntry entry = &lt;br /&gt;                       new DirectoryEntry("LDAP://PATH ");&lt;br /&gt;System.DirectoryServices.DirectorySearcher mySearcher = &lt;br /&gt;new DirectorySearcher(entry);&lt;br /&gt;mySearcher.Filter = ("(anr=Patrick Halsted)");&lt;br /&gt;System.DirectoryServices.SearchResultCollection results = mySearcher.FindAll();&lt;br /&gt;Console.WriteLine("El numero de resultados es: " + results.Count.ToString());&lt;br /&gt;        foreach(System.DirectoryServices.SearchResult result in results)&lt;br /&gt;        {&lt;br /&gt;        	foreach(string propiedad in   &lt;br /&gt;                                 result.Properties.PropertyNames)&lt;br /&gt;                { &lt;br /&gt;                       &lt;br /&gt;	               &lt;font color="red"&gt;&lt;b&gt; foreach( object myCollection in &lt;br /&gt;                                result.Properties[propiedad])&lt;br /&gt;                        {&lt;br /&gt;                              Console.Write(myCollection + "\n");&lt;br /&gt;                        }&lt;/b&gt;        &lt;/font id="red"&gt;              &lt;br /&gt;                }&lt;br /&gt;         }&lt;br /&gt;&lt;br /&gt;The problem with your web service is that you're probably using the &lt;b&gt;GetDirectoryEntry()&lt;/b&gt; Method. This is very slow Because you're requerying  the active directory for each result.&lt;br /&gt;&lt;br /&gt;Need more help Send me an e-mail, I have a web service and I'll be happy to give you the code ...&lt;br /&gt;&lt;br /&gt;Happy codding &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Fred Darwin Villareal</description></item><item><title>Re: Web Service timed out</title><link>https://www.infopathdev.com:443/forums/thread/17779.aspx</link><pubDate>Fri, 11 Nov 2005 03:31:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17779</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17779.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17779</wfw:commentRss><description>Fred, I agree, the timeout issue I get has nothing to do with InfoPath.  But I just have not been able to resolve yet.  I am interested in your solution but would like a little more info.  Are you saying you noticed there were issues associated to Active Directory when accessing your webservices?  I am using windows integrated authentication for access to these webservices that are timing out.</description></item><item><title>Re: Web Service timed out</title><link>https://www.infopathdev.com:443/forums/thread/17778.aspx</link><pubDate>Thu, 10 Nov 2005 20:42:10 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17778</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17778.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17778</wfw:commentRss><description>Is it a custom web service?&lt;br /&gt;&lt;br /&gt;If so set the maxRequestLength in the web.config of the server running the web service.&lt;br /&gt;&lt;br /&gt;I did both those two things, but the one that did the trick was setting the timeout in InfoPath. The time my WS needs to run is pretty extreme, since the attachments passed can be up to 10 mb! After setting up the timeout of the web service in IP, the problem was solved.&lt;br /&gt;&lt;br /&gt;//AndersR&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Re: Web Service timed out</title><link>https://www.infopathdev.com:443/forums/thread/17777.aspx</link><pubDate>Thu, 10 Nov 2005 13:44:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17777</guid><dc:creator>fredarwin</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17777.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17777</wfw:commentRss><description>I have the same problem, but i dont think so that the problem is on infopath, because i test the same webservice AD from another .net app and still take a long time to respond me.&lt;br /&gt;My solution:&lt;br /&gt;change the way to use this webservice on infopath to retrieve only user o group that login on my infopath form and not all users or groups.&lt;br /&gt;&lt;br /&gt;Fred Darwin Villareal</description></item><item><title>Re: Web Service timed out</title><link>https://www.infopathdev.com:443/forums/thread/17776.aspx</link><pubDate>Thu, 10 Nov 2005 11:37:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17776</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17776.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17776</wfw:commentRss><description>I am going through a similar issue with webservice in a production environment.  Setting the timeout has not seemed to fixed the issue.  You are not alone.</description></item><item><title>Re: Web Service timed out</title><link>https://www.infopathdev.com:443/forums/thread/17775.aspx</link><pubDate>Thu, 10 Nov 2005 08:38:06 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17775</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17775.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17775</wfw:commentRss><description>Hi Anders,&lt;br /&gt;&lt;br /&gt;Thanks for the suggestion.  Unfortunately I've tried setting the Timeout property and the request still times out after around 30 seconds, even though I do the following:&lt;br /&gt;&lt;br /&gt;// 'GetGroupMembers' web service...&lt;br /&gt;adapterWeb = (WebServiceAdapterObject)thisXDocument.DataAdapters["GetGroupMembers"];&lt;br /&gt;// Set the timeout to be longer for this service...&lt;br /&gt;adapterWeb.Timeout = 60;&lt;br /&gt;&lt;br /&gt;Have I missed something?</description></item><item><title>Re: Web Service timed out</title><link>https://www.infopathdev.com:443/forums/thread/17774.aspx</link><pubDate>Thu, 10 Nov 2005 08:17:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17774</guid><dc:creator>AndersR</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17774.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17774</wfw:commentRss><description>Hi David &lt;br /&gt;&lt;br /&gt;if you are using managed code, just set the timeout property of your web reference class to a higher value.&lt;br /&gt;&lt;br /&gt;hth&lt;br /&gt;//AndersR&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Web Service timed out</title><link>https://www.infopathdev.com:443/forums/thread/17499.aspx</link><pubDate>Thu, 10 Nov 2005 07:47:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17499</guid><dc:creator>DavidCrabbe</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17499.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17499</wfw:commentRss><description>I have a web service which enumerates an Active Directory group with around 90 members.  When hosted on my development machine, the web service takes around 4-5 seconds to return.  &lt;br /&gt;&lt;br /&gt;Unfortunately when the web service is hosted on the development virtual server it takes considerably longer and causes the following error:&lt;br /&gt;&lt;br /&gt;"InfoPath cannot run the specified query.&lt;br /&gt;InfoPath either cannot connect to the data source or the service has timed out."&lt;br /&gt;&lt;br /&gt;Does anyone know of some way in which to increase the timeout that InfoPath uses for web services?&lt;br /&gt;&lt;br /&gt;Thanks,&lt;br /&gt;David.</description></item></channel></rss>