You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Jarmo Doc <ja...@hotmail.com> on 2005/09/06 19:55:39 UTC
How to indicate session mgmt in WSDL
I intend to implement session management via SOAP headers and am under the
impression that my WSDL should be as self-describing as possible hence it
would need to describe the session management interface.
Let's say that my WS exposes the following methods:
- login(name, password)
- dowork(args)
- logout()
How can WSDL indicate that the login() method will return SOAP headers
containing a new session id? And how would it indicate that dowork() and
logout() require the session id in subsequent requests from the client?
Thanks.
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
Re: How to indicate session mgmt in WSDL
Posted by Pe...@mpls.frb.org.
Yes, you could but there is nothing to restrict the user from invoking
your services in the incorrect order which would cause problems. Ideally,
you would define an orchestration WSCI file (name used by BPEL4WS, I don't
remember what the WS-Orchestration file is called) for dowork and the
orchestration would mediate between the three activities defined in your
WSDL, login, dowork, and logout. This way, you client only cares about
the business process dowork and you can handle the behind the scenes
processing, including rearranging the order on the fly.
Perry Hoekstra
"Jarmo Doc" <ja...@hotmail.com>
09/06/2005 01:28 PM
Please respond to
axis-user@ws.apache.org
To
axis-user@ws.apache.org
cc
Subject
Re: How to indicate session mgmt in WSDL
Or perhaps I should just indicate that login() returns a String
(containing
session ID) and dowork() and logout() have sessionID parameters, as
follows:
- String login(String name, String password);
- void dowork(String sessionID, args);
- void logout(String sessionID);
Then do all session management myself.
>From: Perry.Hoekstra@mpls.frb.org
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: How to indicate session mgmt in WSDL
>Date: Tue, 6 Sep 2005 13:14:58 -0500
>
>Yes, your WSDL should be as self-describing as possible but in this case,
>I think you are asking too much. I would encourage you to look at web
>service orchestration (WS-Orchestration). It would be a better fit for
>what you are trying to accomplish. WS-Orchestration (and its predecessor
>BPEL4WS) is about connectioning discrete web services into a higher-order
>business process.
>
>Perry Hoekstra
>
>
>
>
>"Jarmo Doc" <ja...@hotmail.com>
>09/06/2005 12:55 PM
>Please respond to
>axis-user@ws.apache.org
>
>
>To
>axis-user@ws.apache.org
>cc
>
>Subject
>How to indicate session mgmt in WSDL
>
>
>
>
>
>
>I intend to implement session management via SOAP headers and am under
the
>
>impression that my WSDL should be as self-describing as possible hence it
>would need to describe the session management interface.
>
>Let's say that my WS exposes the following methods:
>
>- login(name, password)
>- dowork(args)
>- logout()
>
>How can WSDL indicate that the login() method will return SOAP headers
>containing a new session id? And how would it indicate that dowork() and
>logout() require the session id in subsequent requests from the client?
>
>Thanks.
>
>_________________________________________________________________
>On the road to retirement? Check out MSN Life Events for advice on how to
>get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
>
>
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Re: How to indicate session mgmt in WSDL
Posted by Jarmo Doc <ja...@hotmail.com>.
Or perhaps I should just indicate that login() returns a String (containing
session ID) and dowork() and logout() have sessionID parameters, as follows:
- String login(String name, String password);
- void dowork(String sessionID, args);
- void logout(String sessionID);
Then do all session management myself.
>From: Perry.Hoekstra@mpls.frb.org
>Reply-To: axis-user@ws.apache.org
>To: axis-user@ws.apache.org
>Subject: Re: How to indicate session mgmt in WSDL
>Date: Tue, 6 Sep 2005 13:14:58 -0500
>
>Yes, your WSDL should be as self-describing as possible but in this case,
>I think you are asking too much. I would encourage you to look at web
>service orchestration (WS-Orchestration). It would be a better fit for
>what you are trying to accomplish. WS-Orchestration (and its predecessor
>BPEL4WS) is about connectioning discrete web services into a higher-order
>business process.
>
>Perry Hoekstra
>
>
>
>
>"Jarmo Doc" <ja...@hotmail.com>
>09/06/2005 12:55 PM
>Please respond to
>axis-user@ws.apache.org
>
>
>To
>axis-user@ws.apache.org
>cc
>
>Subject
>How to indicate session mgmt in WSDL
>
>
>
>
>
>
>I intend to implement session management via SOAP headers and am under the
>
>impression that my WSDL should be as self-describing as possible hence it
>would need to describe the session management interface.
>
>Let's say that my WS exposes the following methods:
>
>- login(name, password)
>- dowork(args)
>- logout()
>
>How can WSDL indicate that the login() method will return SOAP headers
>containing a new session id? And how would it indicate that dowork() and
>logout() require the session id in subsequent requests from the client?
>
>Thanks.
>
>_________________________________________________________________
>On the road to retirement? Check out MSN Life Events for advice on how to
>get there! http://lifeevents.msn.com/category.aspx?cid=Retirement
>
>
_________________________________________________________________
Express yourself instantly with MSN Messenger! Download today - it's FREE!
http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/
Re: How to indicate session mgmt in WSDL
Posted by Pe...@mpls.frb.org.
Yes, your WSDL should be as self-describing as possible but in this case,
I think you are asking too much. I would encourage you to look at web
service orchestration (WS-Orchestration). It would be a better fit for
what you are trying to accomplish. WS-Orchestration (and its predecessor
BPEL4WS) is about connectioning discrete web services into a higher-order
business process.
Perry Hoekstra
"Jarmo Doc" <ja...@hotmail.com>
09/06/2005 12:55 PM
Please respond to
axis-user@ws.apache.org
To
axis-user@ws.apache.org
cc
Subject
How to indicate session mgmt in WSDL
I intend to implement session management via SOAP headers and am under the
impression that my WSDL should be as self-describing as possible hence it
would need to describe the session management interface.
Let's say that my WS exposes the following methods:
- login(name, password)
- dowork(args)
- logout()
How can WSDL indicate that the login() method will return SOAP headers
containing a new session id? And how would it indicate that dowork() and
logout() require the session id in subsequent requests from the client?
Thanks.
_________________________________________________________________
On the road to retirement? Check out MSN Life Events for advice on how to
get there! http://lifeevents.msn.com/category.aspx?cid=Retirement