Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / General MS InfoPath Questions / October 2006

Tip: Looking for answers? Try searching our database.

Secondary Data Connection Web Service with a parameter?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Jeff Richardson - 28 Sep 2006 17:26 GMT
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
darko - 02 Oct 2006 12:49 GMT
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.
Signature

Darko Milevski, MCAD

> 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
[quoted text clipped - 10 lines]
>
> Jeff Richardson
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.