instantiate the web service proxy - InfoPath Dev
in

InfoPath Dev

instantiate the web service proxy

Last post 04-03-2007 08:15 AM by Matt Faus. 1 replies.
Page 1 of 1 (2 items)
Sort Posts: Previous Next
  • 03-30-2007 05:04 AM

    instantiate the web service proxy


    hello

    I vahe a little problem in using the web service i built.
    I am not capable of instantiating the web service proxy. I read that this is done by
    namespace_of_the_client.name_of_the_web_reference_to_webservice myWebServiceProxy= new namespace_of_the_client.name_of_the_web_reference_to_webservice();

    and than, when i want to use a a web method, called let's say Add,
    i write
    myWebServiceProxy.Add(1,2);

    This works fine when my client is a ConsoleApplication that is using the webService. When i am using an infopath it doesn't work. Is this because i have two namespaces, a simple one and a INfopathNamespace, or is something else?

    I use c#

    Basescu
  • 04-03-2007 08:15 AM In reply to

    Re: instantiate the web service proxy

    Hi Basescu,

    I've never used web services this way, but I doubt you'll want to do it this way in InfoPath. Seems like it would need to be full trust. To interact with a web service in InfoPath you add it as a secondary data source, and then manipulate the queryFields node to change the values of the parameters. Once that is done you can call Query() on the web service object and the dataFields node will contain the values of the return.
    Matt Faus / Microsoft InfoPath MVP
    Qdabra® Software / Streamline data gathering to turn process into knowledge
Page 1 of 1 (2 items)
Copyright © 2003-2019 Qdabra Software. All rights reserved.
View our Terms of Use.