Answered
WebServices and Sessions
Hi,
Is there a way to maintain a session on the server for the duration of a series of web service requests for an individual consumer?
What I want to happen is something like this:
1. The consumer to invoke the webservice with a username/password combination in the SOAP header.
2. The web service authenticates the user against the database and inserts a session id in to the SOAP header.
3. The consumer makes another call to the webservice for some data and if the session id matches the session stored on the server, the web service will return the data for this and all subsequent requests that have the correct session id stored in the SOAP header.
Does anyone know if there a way I can do this, or do I have to write the data to a database and check against that for each call?
Is there a way to maintain a session on the server for the duration of a series of web service requests for an individual consumer?
What I want to happen is something like this:
1. The consumer to invoke the webservice with a username/password combination in the SOAP header.
2. The web service authenticates the user against the database and inserts a session id in to the SOAP header.
3. The consumer makes another call to the webservice for some data and if the session id matches the session stored on the server, the web service will return the data for this and all subsequent requests that have the correct session id stored in the SOAP header.
Does anyone know if there a way I can do this, or do I have to write the data to a database and check against that for each call?
