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 / December 2005

Tip: Looking for answers? Try searching our database.

Passing a query parameter to web service

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
vpman - 12 Dec 2005 22:23 GMT
I have set up a web service that takes a single parameter which is th
value of a drop down list in my infopath form.  The web service the
returns the query result to populate a text box (single value) on m
form.
My question is how do I pass the value of the drop down list as
parameter to the web service which is then run when I click a button o
my form
Adam Harding - 13 Dec 2005 08:20 GMT
OK

First check you have added the web service as a submit data connection to
the form you can use a rule to set the web service field to the value of the
drop-down list when the drop-down list is not balnk for example.  To pull the
data back add the web service as receive data and reverse the procedure to
the text box.

Hope this helps, any question let me know

> I have set up a web service that takes a single parameter which is the
> value of a drop down list in my infopath form.  The web service then
[quoted text clipped - 3 lines]
> parameter to the web service which is then run when I click a button on
> my form?
vpman - 14 Dec 2005 00:20 GMT
I have tried going back to basics and created a new blank Infopath for
with a drop down List Box (with 3 sample parameter values), a text bo
formatted as integer data type and a button that queries the we
service.
I have added the web service (secondary data connection) as a submi
connection with the parameter option set as the drop down list bo
value.
I have also added the web service as a recieve connection and assigne
the recieve data to the text box.
I have added a submit rule and a query rule to the button properties
however when I preview the form there is no data returned from the we
service when I click the button.
I have also tried to create a basic new form based on the web servic
to both submit and receive data.  Typing a value into the query fiel
and pressing the query button also resulted in no data being returned.
The web service works fine within Visual Studio, prompting for
parameter value and returning the appropriate data.
Other web services where I have 'hard coded' the parameter value int
the SELECT statement work fine within Infopath.
There is obviously something simple I am overlooking - any suggestion
would be appreciated
 
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.