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();
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();