Using web services protected by a login/password in InfoPath 2007

  • Thread starter Rodolphe - TÉLUQ UNIVERSITY - QUEBEC
  • Start date
R

Rodolphe - TÉLUQ UNIVERSITY - QUEBEC

Hello everebody,

We’ve used InfoPath 2007 to produce forms for some of our departments. These
forms rely on proprietary web services to upload data from an Oracle
database. Everything works fine as long as we use a test configuration. But
in our operational environment, things are different : our web services are
protected by a login/password. To implement this feature, we have defined in
each web sercice’s wsdl file an authentication header. So, to keep accessing
our web services in the operational environment, some properties of this
header have to be set up.
We’ve been used successfully this technique with .NET.
Regarding InfoPath, when one creates an external data connection in a form,
they provide a URL leading to the asmx/wsdl files of the web service. But as
far as we know, there is not location in InfoPath to specify the
login/password that would have to be introduced in our wsdl file-based
authentication header. Consequently, this hampers us to access our web
services. We could provide a free access to our web services and shift the
authentication data in a connection file created on our SharePoint server
(taking advantage of InfoPath capability to convert the external data source
to a udcx file). But, alas, our web services have also been used in a context
where no SharePoint server is involved. And of course our web services cannot
get unprotected.

So we do have a problem and do not know how to solve it for the moment,
except by creating web references in the VB project associated with the form;
but these connections cannot be seen at the form level, which is a pity.

Here is my questions :

1) Do you know if it is possible to make InfoPath 2007’s secondary data
connections use a login/password?
2) Provided it is, does this have to be done at the form level (using some
option we would have missed) of using some VB code catching some event and
retrieving some object allowing to manage InfoPath’s external data
connections from VB code?
3) Another question not related to this authentication problem : when some
form’s field is plugged into a secondary data connection (connected to a web
service), why do one have to copy manually the matching output field of the
web service to the form’s field (using a rule in the form or some VB code)
since that match between the two fields has already been set up when one
changed the connection on the form’s field from principal to secondary?

Should someone have any information about all this, we would appreciate very
much their letting me know.

Regards,
Rodolphe
 

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