Secondary Data Connection Web Service with a parameter?

J

Jeff Richardson

I have a web service that takes a single parameter. The data for the
parameter is in a field on the InfoPath form. I want to call the web
service once the user has filled in the data and clicks a button on the
form.



When I created the web service data connection, the wizard asks for a
'sample' value for the parameter. If I enter a valid value for that
parameter InfoPath correctly calls the web service. How do I change that
parameter value at run time so that the web service does not always return
the same data?



Thanks in advance

Jeff Richardson
 
D

darko

The WebServiceDataConnection (WSDC) you created in the Infopath, creates a
secondary data saource in the InfoPath. The WSDC contains nodeGroup named
queryFields, where depending on the web service is the paramete xml element
node.. Change the value of that node, and call the Query() method of the
xdocmuent.dataobjects("<Connection Name>") to call the web service and
refresh the data.
 

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