Building a complete solution using InfoPath

K

Karen

Hi,
Our main aim is to create a complete solution using InfoPath.
For instance one task would be to
1. Submit a username to a web service using an InfoPath form.
The web service would call a logon method which returns a session ID.
2. Return the session ID to the InfoPath form.

From experimenting with InfoPath it appears that once the information
is submitted to the web service there is no return path. Is this the
case or can I get some communication back to the Infopath form?

Aim 2
------
Once I get a response back from the web service I would like to
be redirected to another InfoPath form passing through the information
returned from the web service. Is this possible using InfoPath or is there
another application I should be looking at to achieve this?

Any information on this would be greatly appreciated..

Thanks
Karen
 
K

Karen

So is it true to say that when an Infopath form is submitted to either
a web service or an existing ASP page there is no way of returning
information to the form?

e.g. a session ID from a Logon call
 
B

Ben Barbour

What about:

[WebMethod]
public int Login(string Username, string Password)
{
(Validate Username/Password and generate sessionID)
return (SessionID or 0 if fail)
}


Then in infopath you would populate the Username/Password fields, query the
dataconnection, and get your session ID.

You wouldn't need to submit the form for your login procedure. All you'd do
is create a button that set the value of the username/password and then
queried the data. Then you can allow access to another view (or another
document) based on the returned value.

-Ben
 

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