Hi Ian,
Thank you for the prompt response.
I should have clarified my problem further.
The authentication process is external to the web service.
The vendor's software flow works as follows :
1) An https request is made using Commons HTTP Client / URLConnection,
the username and password are included as request headers.
2) The JSESSIONID in the response is extracted
---- BEGIN Webservice Interaction
3) Call are made to the Webservice with the JSESSIONID ( retrieved in
step 2 ) tacked on as an HTTP header.
--- END Webservice Interaction
4) Logoff url needs to be invoked using the JSESSIONID.
The way I understand it is if the authentication was part of the web
service interaction the approach you referred me to would work, but in
my case where the authentication is external it would not?
Thanks,
Renier
Ian Roberts wrote:
Renier Rhode wrote:
Hi,
I need to add custom HTTP headers to an outgoing request. The system I'm
integrating with requires the a session identifier to be included in the
HTTP headers on every request.
I've generated the client code using the included wsdl2java.
Any help would be appreciated.
http://weblogs.java.net/blog/ramapulavarthi/archive/2006/06/maintaining_ses.html
explains how to maintain the session in JAX-WS. The blog is written for
Glassfish Metro (the Sun RI) but the same approach with the
SESSION_MAINTAIN_PROPERTY works on CXF too.
Ian