<?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: Help me change code to VB</title><link>https://www.infopathdev.com:443/forums/thread/59945.aspx</link><pubDate>Tue, 05 Oct 2010 20:55:43 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59945</guid><dc:creator>Patrick Halstead</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59945.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=59945</wfw:commentRss><description>&lt;p&gt;Hey Rob,&lt;/p&gt;
&lt;p&gt;This is like 10 lines of code. Surely, you can learn how to do this on your own. This forum is for people with InfoPath issues, not freeloading requests to people to do your work for you. &lt;/p&gt;
&lt;p&gt;Best,&lt;/p&gt;</description></item><item><title>Help me change code to VB</title><link>https://www.infopathdev.com:443/forums/thread/59537.aspx</link><pubDate>Fri, 01 Oct 2010 20:22:36 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:59537</guid><dc:creator>robszar</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/59537.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=59537</wfw:commentRss><description>&lt;p&gt;&amp;nbsp;I am trying to dynamically populate a drop-down list by calling a web service, I have this &lt;span style="font-weight:bold;"&gt;ex&lt;/span&gt;ample:&amp;nbsp; http://support.microsoft.com/kb/826994 &lt;/p&gt;&lt;p&gt;but the code is vbscript or jscript, I need VB. &amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;Can someone provide an example or help me change this to vb?&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;p&gt;&amp;nbsp; &lt;br /&gt;&lt;/p&gt;&lt;pre class="code"&gt;	Dim fieldValue&lt;br /&gt;	set fieldValue = XDocument.DOM.selectSingleNode( &amp;quot;/my:myFields/my:field1&amp;quot; )&lt;br /&gt;&lt;br /&gt;	&amp;#39;Get a reference to the SDS bound to the Web Service.	&lt;br /&gt;	Dim theDataObject&lt;br /&gt;	set theDataObject = XDocument.DataObjects.Item(&amp;quot;GetCities&amp;quot;)&lt;br /&gt;&lt;br /&gt;	&amp;#39;Set the SelectionNamespaces so that you can find the correct field.&lt;br /&gt;        &amp;#39;Note: If the Web service was created with Visual Studio .NET 2003, the xmlns:s0 namespace is &lt;br /&gt;        &amp;#39;http://tempuri.org/PopulateCities/Service1&lt;br /&gt;	theDataObject.DOM.setProperty&amp;quot;SelectionNamespaces&amp;quot;, _&lt;br /&gt;		&amp;quot;xmlns:dfs=&amp;quot;&amp;quot;http://schemas.microsoft.com/office/infopath/2003/dataFormSolution&amp;quot;&amp;quot; &amp;quot; &amp;amp;_&lt;br /&gt;                &amp;quot;xmlns:s0=&amp;quot;&amp;quot;http://tempuri.org/&amp;quot;&amp;quot;&amp;quot;&lt;br /&gt;&lt;br /&gt;	Dim queryValue&lt;br /&gt;	set queryValue = theDataObject.DOM.selectSingleNode( _&lt;br /&gt;		&amp;quot;/dfs:myFields/dfs:queryFields/s0:GetCities/s0:sState&amp;quot; )&lt;br /&gt;&lt;br /&gt;	queryValue.text = fieldValue.text&lt;br /&gt;	theDataObject.Query	&lt;br /&gt;&lt;/pre&gt;&lt;p&gt;&amp;nbsp;XDocument.View.ForceUpdate&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;&lt;p&gt;&amp;nbsp;&lt;/p&gt;</description></item></channel></rss>