users@jax-ws.java.net

cookie tracking across multiple services?

From: Levi Purvis <javanet_at_purvis.ws>
Date: Mon, 23 Oct 2006 15:07:20 -0400

I'm using the javax.xml.ws.Service API to generate dynamic clients based on
shared Java interfaces and WSDL. Is there a way to track cookies across
multiple service instances returned from the getPort() method? I tried
setting javax.xml.ws.BindingProvider.SESSION_MAINTAIN_PROPERTY on the
service instance (by casting to javax.xml.ws.BindingProvider), but that only
tracks cookies separately on a per-service basis. I would like all services
from any given client process to share the same cookies.

The root of the problem is that I'm trying to secure multiple web services
by requiring a "login" and then using state in the HttpSession to
authenticate & authorize subsequent requests. Is there a recommended way to
do this with the RI rather than the typical HttpSession cookie tracking used
in web apps?