<?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>Data Connections</title><link>https://www.infopathdev.com:443/forums/44.aspx</link><description> </description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: I can't connect to web service on VSTA</title><link>https://www.infopathdev.com:443/forums/thread/83928.aspx</link><pubDate>Fri, 26 Oct 2012 15:16:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83928</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83928.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=83928</wfw:commentRss><description>It is amazing how much easier it is write code when you can run in debug and figure out what your mistakes are, and it is something I think is often assumed (incorrectly) that &lt;em&gt;everyone&lt;/em&gt; already knows this....</description></item><item><title>Re: I can't connect to web service on VSTA</title><link>https://www.infopathdev.com:443/forums/thread/83915.aspx</link><pubDate>Fri, 26 Oct 2012 10:11:32 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83915</guid><dc:creator>axi23</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83915.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=83915</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Thanks! VSTA debuger is very cool.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;My problem wasn&amp;#39;t in connection but i had outIterator always null. This happened because outputnav navigator returns&amp;nbsp; only [ns1:getAttachsResponse/ns1:getAttachsResult/ns1:string] so i have to select only that XPath. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks for your answers Hilary. &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Best regards &lt;br /&gt;&lt;/p&gt;</description></item><item><title>Re: I can't connect to web service on VSTA</title><link>https://www.infopathdev.com:443/forums/thread/83834.aspx</link><pubDate>Wed, 24 Oct 2012 17:02:23 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83834</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83834.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=83834</wfw:commentRss><description>I&amp;#39;d put some breakpoints in the code and run in debug so you can check the errorNav and the outputNav. Here&amp;#39;s some &lt;a href="http://www.infopathdev.com/blogs/hilary/archive/2009/09/27/debug-managed-code-in-vsta-for-the-accidental-programmer.aspx"&gt;help&lt;/a&gt; on how to do that in case you need it.</description></item><item><title>Re: I can't connect to web service on VSTA</title><link>https://www.infopathdev.com:443/forums/thread/83833.aspx</link><pubDate>Wed, 24 Oct 2012 16:55:58 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83833</guid><dc:creator>axi23</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83833.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=83833</wfw:commentRss><description>&lt;p&gt;Oh my god! Sorry. I forgot to paste execute action and then i pasted it in wrong place.&lt;/p&gt;&lt;p&gt;&amp;nbsp;I edit my first post with correct code.&amp;nbsp;&lt;/p&gt;&lt;p&gt;Thanks for your answer&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item><item><title>Re: I can't connect to web service on VSTA</title><link>https://www.infopathdev.com:443/forums/thread/83832.aspx</link><pubDate>Wed, 24 Oct 2012 16:41:57 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83832</guid><dc:creator>Hilary Stoupa</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83832.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=83832</wfw:commentRss><description>The code in your post won&amp;#39;t actually compile, will it? You are using inputNav, etc prior to actually executing the connection?</description></item><item><title>I can't connect to web service on VSTA</title><link>https://www.infopathdev.com:443/forums/thread/83830.aspx</link><pubDate>Wed, 24 Oct 2012 15:40:02 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:83830</guid><dc:creator>axi23</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/83830.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=44&amp;PostID=83830</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;Hello,&lt;/p&gt;&lt;p&gt;&amp;nbsp;I&amp;#39;m trying to connect to a web service method hosted in Sharepoint . When i did it from the program i&amp;#39;m allow to get result cut when i do it on FormEvents_Loading method, it doesnt give me any result but unfortuantely it doesn´t give any error too. &lt;/p&gt;&lt;p&gt;&amp;nbsp;FormEvents_Loading code&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; public void FormEvents_Loading(object sender, LoadingEventArgs e)&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; {&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; WebServiceConnection connection= (WebServiceConnection)this.DataConnections[&amp;quot;getAttachs&amp;quot;];&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XmlDocument inputDoc = new XmlDocument();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XmlDocument outputDoc = new XmlDocument();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XmlDocument errorDoc = new XmlDocument();&lt;br /&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Create the XPathNavigator objects for the documents&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator inputNav = inputDoc.CreateNavigator();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator outputNav = outputDoc.CreateNavigator();&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNavigator errorNav = errorDoc.CreateNavigator();&lt;br /&gt;&lt;/p&gt;&lt;p&gt;connection.Execute(inputNav, outputNav, errorNav);&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; XPathNodeIterator outIterator = outputNav.CreateNavigator().Select(&amp;quot;/dfs:myFields/dfs:dataFields/ns1:getAttachsResponse/ns1:getAttachsResult/ns1:string&amp;quot;, NamespaceManager);&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; }&lt;br /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/p&gt;&lt;p&gt;outIterator.count always return 0 value ,so it seems that it never fills a iterator.&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Someone have any idea that why happens this? &lt;/p&gt;&lt;p&gt;&amp;nbsp;Thanks,&lt;/p&gt;&lt;p&gt;&amp;nbsp;Regards&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>