<?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: Webservice availability...</title><link>https://www.infopathdev.com:443/forums/thread/17842.aspx</link><pubDate>Sun, 12 Mar 2006 09:43:51 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17842</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17842.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17842</wfw:commentRss><description>You can put your code in try-catch block, if the webservice is not available then exception is raised by InfoPath and your catch block can perform what should happen if webservice is not available.</description></item><item><title>Re: Webservice availability...</title><link>https://www.infopathdev.com:443/forums/thread/17841.aspx</link><pubDate>Sat, 11 Mar 2006 10:17:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17841</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17841.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17841</wfw:commentRss><description>Hi Agni,&lt;br /&gt;&lt;br /&gt;thanks for your reply. Yes, you are right. I can uncheck the option "Automatically retrieve when form is opened" and I can query my webservice in the code.&lt;br /&gt;&lt;br /&gt;But do you know how I can check -anyway- if a webservice is just available --- that I can retrieve data.&lt;br /&gt;&lt;br /&gt;My problem is not to query the dataconnection itself but to &lt;b&gt;check&lt;/b&gt; if I can retrieve data at all from the webservice.&lt;br /&gt;&lt;br /&gt;Thank you for your help</description></item><item><title>Re: Webservice availability...</title><link>https://www.infopathdev.com:443/forums/thread/17840.aspx</link><pubDate>Sat, 11 Mar 2006 07:16:19 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17840</guid><dc:creator>Agni Jonnalagadda</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17840.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17840</wfw:commentRss><description>Hi Karsten,&lt;br /&gt;You need uncheck the option "Automatically retrieve when form is opened" when you are taking the connection and query the webservice "on button click" or in the code.&lt;br /&gt;&lt;br /&gt;You can add rules to your button to query the dataconnection.&lt;br /&gt;In the code you need get the webservice adapter and query that.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;</description></item><item><title>Webservice availability...</title><link>https://www.infopathdev.com:443/forums/thread/17525.aspx</link><pubDate>Fri, 10 Mar 2006 10:17:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17525</guid><dc:creator>Karsten Brocksieper</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17525.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17525</wfw:commentRss><description>Hello,&lt;br /&gt;&lt;br /&gt;in most of my forms I use the "Active Directory Webservice" from this site. I have set the option that the data "Automatically retrieve when form is opened".&lt;br /&gt;&lt;br /&gt;But sometimes our users want to fill out the forms without any connection to our network and therefore they get an error message while they open the form.&lt;br /&gt;&lt;br /&gt;So my question: Is there a way that I can check the availability of the webservice at startup and depending of the check result either use the webservice to retrieve my data or leave the fields blank.&lt;br /&gt;&lt;br /&gt;Many thanks in advance.</description></item></channel></rss>