<?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 Input Parameters via Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/17817.aspx</link><pubDate>Sun, 22 Jan 2006 22:57:45 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17817</guid><dc:creator>vt_asparagus</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17817.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17817</wfw:commentRss><description>This is in VB script it should be very easy to get code like it working in vb.net.&lt;br /&gt;&lt;br /&gt;'Set the namespace&lt;br /&gt;XDocument.DataObjects("GetPart").DOM.setProperty("SelectionNamespaces", "xmlns:ns3=""http://www.blah.com/Parts"" xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution""")&lt;br /&gt;&lt;br /&gt;'set the parameter&lt;br /&gt;XDocument.DataObjects("GetPart").DOM.selectSingleNode("/dfs:myFields/dfs:queryFields/ns3:GetPartsByNumber/ns3:sPartNumber").text = sSearchText&lt;br /&gt;&lt;br /&gt;'run query&lt;br /&gt;XDocument.DataObjects("GetPart").Query()&lt;br /&gt;</description></item><item><title>Web Service Input Parameters via Managed Code</title><link>https://www.infopathdev.com:443/forums/thread/17514.aspx</link><pubDate>Sat, 21 Jan 2006 16:36:11 GMT</pubDate><guid isPermaLink="false">033a2e2d-04e2-4a9d-be01-a4634161eefd:17514</guid><dc:creator>SCherry</dc:creator><slash:comments>0</slash:comments><comments>https://www.infopathdev.com:443/forums/thread/17514.aspx</comments><wfw:commentRss>https://www.infopathdev.com:443/forums/commentrss.aspx?SectionID=48&amp;PostID=17514</wfw:commentRss><description>Could someone please provide an example in vb.net on how to pass input parameters to a web service via managed code in vb.net?  On the OnLoad event I want to pass the UserName to a Web Service to return the users full name, phone number, and email address to pre-populate some text boxes.  I know how to set these input parameters via rules but do not know the user name until i get to the code.&lt;br /&gt;&lt;br /&gt;Thanks</description></item></channel></rss>