Entering web service credentials programatically

N

Norsketech

I am displaying an Infopath form inside a Windows App via a form control. I
am wondering how you can pass the form the username & password for access a
web service via the form? The windows app already has the username and
password, so I don't want the user to have to enter it in again when
performing a submit action on the form.
 
S

Swathi (GGK Tech)

Hi,
Add two fields username and password to the InfoPath form. While displaying
the InfoPath form, set the user name and password values in to the InfoPath
form fields.
 
N

Norsketech

The username and password fields are not part of the WSDL. They are the
security credentials to the web server providing the web service.
On "Submit" Infopath displays a pop-up dialog that asks for the username and
password to the webservice.
So simply putting username and password fields on the form won't work.
Infopath needs to know that these fields are the credentials for the web
service.
If this can be done via C#/.Net code using the formcontrol that is fine too.
 

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