Web Service Input Parameters via Managed Code - InfoPath Dev
in

InfoPath Dev

Web Service Input Parameters via Managed Code

Last post 01-22-2006 02:57 PM by vt_asparagus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 01-21-2006 08:36 AM

    • SCherry
    • Not Ranked
    • Joined on 01-19-2006
    • USA
    • Posts 3

    Web Service Input Parameters via Managed Code

    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.

    Thanks
  • 01-22-2006 02:57 PM In reply to

    Re: Web Service Input Parameters via Managed Code

    This is in VB script it should be very easy to get code like it working in vb.net.

    'Set the namespace
    XDocument.DataObjects("GetPart").DOM.setProperty("SelectionNamespaces", "xmlns:ns3=""http://www.blah.com/Parts"" xmlns:dfs=""http://schemas.microsoft.com/office/infopath/2003/dataFormSolution""")

    'set the parameter
    XDocument.DataObjects("GetPart").DOM.selectSingleNode("/dfs:myFields/dfs:queryFields/ns3:GetPartsByNumber/ns3:sPartNumber").text = sSearchText

    'run query
    XDocument.DataObjects("GetPart").Query()
    Jason
    http://www.k2distillery.com/
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.