views:

40

answers:

0

Hello, I'm trying to develop webservice authentication by checking hash_ID given in wsdl URL. I use servlet webservice (JAXWS, without ejb). I've extended WSServlet class. In doGet method I check if the given hashId is valid and if so, I do the programmatic login. The problem is that after login, principal is not propagated from servlet to WebService class.

When I remove deployment descriptors (web.xml and sun-jaxws.xml - they are not required in servlet endpoint) and do the programmatic login from any other servlet, the principal is propagated to WebService and everything works fine.

I use glassfish v3 server.

If anybody can help me with that propagation problem I will be grateful!