web service secondary data sources

B

bwmbagus

How do I configure Infopath to pass credentials to the webs ervice so I can
use IsInrole in the code to authenticate the users group membership on the
server domain?
I am using the refresh action of a command buttton to activate the call on
the client!
 
A

Anjan

You need to build SOAP request manually/programatically where you can build
your own SOAP envelop and body. You can pass on your cradential etc. there.

Try searching for "submit programatically" phrase and you will get lot of
sample codes to work with.
 
B

bwmbagus

for anyone who is interested.
It appears the correct way is to write a web service allowing the user to
interrogate the details from WScript.Network to get the username and domain
and computername.
This can then be passed in with the Infopath document in fields, and used to
check for a role membership.
This implies that in fact InfoPath alreaady passes in Credentials and it is
my use of Contect.User rather than System.Envirnment etc that is the fault.

hope this helps anyone wondering how best to validate the cleint user.
I then return a "Access not allowed" message on failiure of IsInRole
 

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