web services and infopath

S

smnbss

I've a web service as DataConnection and i must get data from this
webservice.

this is my WS

[WebMethod(Description = "Ritorna un Dataset con lo schema dei dati del
modulo")]
public DataSet GetData(string module, string method, params object[]
args)
{

}

I call my WS using
((WebServiceAdapterObject)thisXDocument.DataAdapters["GetData"]).Query();

How can i pass args to my WS ?

i tryed this but don't like it so much...

I tried
IXMLDOMNode one =
thisXDocument.DOM.selectSingleNode("//dfs:myFields/dfs:queryFields/tns:GetData/tns:args/tns:anyType");
one.text = "par1";
IXMLDOMNode two = one.cloneNode(true);
two.text = "par2";
IXMLDOMNode three = one.cloneNode(true);
three.text = "par3";
((WebServiceAdapterObject)thisXDocument.DataAdapters["GetData"]).Query();
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top