how to connect webservice

S

sith

HI friends,

Could you please send any links to houw to connect webservice
programatically in infopath.
my need is when form is opend i will catch user Authontication
ID.based on the UserID i have to fetch the data from the server.


waiting for your resp

Thanks & Regards
Sithender.S
 
C

chris.boothroyd

Calling a web service from InfoPath is actually reasonably easy -- build your
web service and then add a new data source that calls the web service.

From the Design Tasks panel, choose data sources --> manage data sources,
click on add, choose web service. Choose recieve data, then enter the URL for
your web service and select the web method. If there are input parameters,
InfoPath asks you to give an example -- but you can leave it blank.

You will also need to add a rule which calls the web service. You can add
rules that run whenever a form is opened using the Form Options --> Rules.
Add a rule that always runs, which invokes a query, and then choose the data
source that you just added, above.

Does this help?
 
S

sunnyy

HI friends,

Could you please send any links to houw to connect webservice
programatically in infopath.
my need is when form is opend i will catch user Authontication
ID.based on the UserID i have to fetch the data from the server.

waiting for your resp

Thanks & Regards
Sithender.S

You can call the web service in the infopath code using VSTA, just as
you call a web service from normal C# or VB .net project.
 

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