<?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>Newbie Questions</title><link>https://www.infopathdev.com:443/forums/39.aspx</link><description>New to InfoPath? Search to see if your question has already been answered. If it has not, then ask it here or the appropriate topic forum.</description><dc:language>en</dc:language><generator>CommunityServer 2007 SP3 (Build: 31118.962)</generator><item><title>Re: Retrieve info from Webservice in code</title><link>https://www.infopathdev.com:443/forums/thread/25471.aspx</link><pubDate>Tue, 08 Jan 2008 14:33:09 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25471</guid><dc:creator>Clay Fox</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25471.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25471</wfw:commentRss><description>&lt;p&gt;I have always just set up the web service DC codeless and in Open Rules had the value I needed placed in an EmployeeID field in my form. Then use code to grab the value from there.&amp;nbsp; I am sure there is a way to get it directly in code, I am sure just a syntax issue,&amp;nbsp;but I have not needed to yet.&lt;/p&gt;</description></item><item><title>Retrieve info from Webservice in code</title><link>https://www.infopathdev.com:443/forums/thread/25469.aspx</link><pubDate>Tue, 08 Jan 2008 10:55:34 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:25469</guid><dc:creator>stumbler</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/25469.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=39&amp;PostID=25469</wfw:commentRss><description>&lt;p&gt;This works fine:&amp;nbsp;var sLogin = XDocument.DOM.selectSingleNode(&amp;quot;/my:myFields/my:Login&amp;quot;); &lt;br /&gt;This doesn&amp;#39;t work: var sLogin2 = XDocument.GetDOM(&amp;quot;GetADEmployeeIDFromLogin&amp;quot;).selectSingleNode(&amp;quot;/dfs:myFields/dfs:queryFields/tns:GetADEmployeeIDFromLogin/tns:LogIn&amp;quot;); &lt;/p&gt;
&lt;p&gt;GetADEmployeeIDFromLogin is a webservice to retrieve a userID from Active directory from the loginname. It is tested and the WS works fine. The problem is that I don&amp;#39;t know how to query the WS in code.&amp;nbsp;Can anyone help?&lt;/p&gt;
&lt;p&gt;Thanks in advance.&lt;/p&gt;
&lt;p&gt;Can anyone tell me how to access datafields from the main and secondary datasource in code (or at least tell me where I can find such information?), because I think that is my main problem.&lt;/p&gt;</description></item></channel></rss>