DZone.com
Follow
Persisting Cookies Across JAX-WS Service Calls Using a Custom SOAP Handler
The Cookie That Never Came BackThe first call authenticated the user. The second failed.I was integrating with a customer-provided SOAP service exposed through a single WSDL, with JAX-WS client classes generated by IBM Rational Application Developer from the WSDL and its XSDs. The first call authenticated the user and came back with a Set-Cookie header. Every call after it needed that cookie. The generated client sent none of it. Each invocation behaved as an independent conversation, and the workflow broke on its second step. No exception, no warning. Just a server that had forgotten who you are.