I have 3 web services as secondary connections that I wish to call, however I need to set the paramaters (accessed by somehow changing the queryField elements of the data connection) before querying the web service.
I can access the DOM of the secondary connection, however I cannot set the individual parameters. When viewing the doms text (by using XDocument.GetDOM("precallScheduled").text in the Jscript) I can see the sample data I set when first creating the connection e.g. 1testamfalse.
If this was split down the first parameter is 1, then "test", "am" and the result from the web service is false.
However when trying to access the element with the following :
XDocument.GetDOM("precallScheduled").selectSingleNode("/dfs:myFields/dfs:queryFields/tns:precallScheduled/tns:comments")
I get an error stating that the tns namespace doesn't exist, however I have opened the XML file and that is definately the structure.
How do I change the sample parameters before calling the webservice?
Many Thanks