Group:  Other Microsoft Office Products ยป microsoft.public.infopath
Thread: Entering web service credentials programatically

Geek News

Entering web service credentials programatically
Norsketech 12/1/2008 1:40:54 AM
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.
RE: Entering web service credentials programatically
Swathi (GGK Tech) 12/31/2008 10:29:01 AM
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.

--
Swathi Porandla
http://www.ggktech.com



"Norsketech" wrote:

[Quoted Text]
> 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.
RE: Entering web service credentials programatically
Norsketech 12/31/2008 3:43:01 PM
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.

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net