<?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 Call Does Not Work</title><link>https://www.infopathdev.com:443/forums/thread/17914.aspx</link><pubDate>Thu, 05 Oct 2006 09:13:20 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17914</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17914.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17914</wfw:commentRss><description>Okay I got it working. The following two lines were missing. &lt;br /&gt;&lt;br /&gt;WebServiceAdapter2 myWebAdapter = (WebServiceAdapter2)thisXDocument.DataAdapters["NextIDNumber"];&lt;br /&gt;myWebAdapter.Query();</description></item><item><title>Web Service Call Does Not Work</title><link>https://www.infopathdev.com:443/forums/thread/17560.aspx</link><pubDate>Thu, 05 Oct 2006 08:21:03 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17560</guid><dc:creator>nukkumatti</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17560.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17560</wfw:commentRss><description>Hi all,&lt;br /&gt;&lt;br /&gt;does anybody know why the following code does not execute my Web Service ?&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;IXMLDOMDocument3 myDoc	= (IXMLDOMDocument3)thisXDocument.GetDOM("NextIDNumber");&lt;br /&gt;				myDoc.setProperty("SelectionNamespaces", "xmlns:my=\"http://schemas.microsoft.com/office/infopath/2003/myXSD/2006-06-19T07-15-47\" xmlns:xsf=\"http://schemas.microsoft.com/office/infopath/2003/solutionDefinition\" xmlns:msxsl=\"urn:schemas-microsoft-com:xslt\" xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" xmlns:xdUtil=\"http://schemas.microsoft.com/office/infopath/2003/xslt/Util\" xmlns:xdXDocument=\"http://schemas.microsoft.com/office/infopath/2003/xslt/xDocument\" xmlns:xdMath=\"http://schemas.microsoft.com/office/infopath/2003/xslt/Math\" xmlns:xdDate=\"http://schemas.microsoft.com/office/infopath/2003/xslt/Date\" xmlns:xd=\"http://schemas.microsoft.com/office/infopath/2003\" xmlns:dfs=\"http://schemas.microsoft.com/office/infopath/2003/dataFormSolution\" xmlns:tns=\"http://tempuri.org/\" xmlns:_xdns0=\"http://schemas.microsoft.com/office/infopath/2003/changeTracking\" xmlns:soap=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" xmlns:diffgr=\"urn:schemas-microsoft-com:xml-diffgram-v1\" xmlns:msdata=\"urn:schemas-microsoft-com:xml-msdata\"");&lt;br /&gt;				ID.text = myDoc.selectSingleNode("/dfs:myFields/dfs:dataFields/tns:NextIDNumberResponse/tns:NextIDNumberResult/NewDataSet/Table1/ID_Number").text;&lt;/pre&gt;&lt;br /&gt;&lt;br /&gt;When I set the check box in the data connection wizard to automatically retrieve the data when... it works. The problem is that I want to call the service only one in a button event.&lt;br /&gt;BTW: I don't get any error message.&lt;br /&gt;&lt;br /&gt;Thx in advance</description></item></channel></rss>