<?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>Web Service Field Declerations</title><link>https://www.infopathdev.com:443/forums/thread/28905.aspx</link><pubDate>Fri, 23 May 2008 17:15:21 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:28905</guid><dc:creator>sdhSiemens</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/28905.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=28905</wfw:commentRss><description>&lt;p&gt;I am trying to write some Jscript to set a fields value = to the value of a web service field. I have been unable to figure out how to declare the web service fields as variables. Here is what I have tried. &lt;/p&gt;
&lt;p&gt;&amp;nbsp; var qPayrollCC = XDocument.DOM.selectSingleNode(&amp;quot;dfs:myFields/dfs:dataFields/s0:GetNameByGIDResponse/s0:GetNameByGIDResult/ns1:SqlRowSet1/ns1:row1/ns1:accountingCode&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;nbsp;var qPayrollCC = XDocument.GetDOM(&amp;quot;dfs:myFields/dfs:dataFields/s0:GetNameByGIDResponse/s0:GetNameByGIDResult/ns1:SqlRowSet1/ns1:row1/ns1:accountingCode&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;nbsp;var qPayrollCC = xdXDocument:GetDOM(&amp;quot;GetNameByGID&amp;quot;)(&amp;quot;dfs:myFields/dfs:dataFields/s0:GetNameByGIDResponse/s0:GetNameByGIDResult/ns1:SqlRowSet1/ns1:row1/ns1:accountingCode&amp;quot;); &lt;/p&gt;
&lt;p&gt;&amp;nbsp; var qPayrollCC = XDocument:GetDOM(&amp;quot;GetNameByGID&amp;quot;);xmlDoc.setProperty(&amp;quot;SelectionNamespaces&amp;quot;, &amp;#39;xmlns:ns1=&amp;quot;dfs:myFields/dfs:dataFields/s0:GetNameByGIDResponse/s0:GetNameByGIDResult/ns1:SqlRowSet1/ns1:row1/ns1:accountingCode&amp;quot;&amp;#39;); &lt;/p&gt;
&lt;p&gt;Nothing seems to work. Can anyone shed some light on this. I haven&amp;#39;t found anything online about this. &lt;/p&gt;</description></item></channel></rss>