I am a newbie in web services. I have a JAX-WS service which I need to implement session mechanism for. The SOAP messages are transported over HTTP, we use WebLogic, so JAXWS application is deployed on WebLogic app server and the services are accessible from WSDL document.
I have @WebServiceProvider (class that implements Provider< SOAPMessage >)
Now when I fire a login request I want JSESSIONID session cookie to be sent back, but we don't want to use CXF or anything else, just so called Metro, which frankly I don't yet completely understand. We also do not want to make this a persistent cookie, so manually adding a cookie to the response header is also not an option. But that works, I tried it. I just do not understand why session cookie is not set up automatically.
I've been searching the web and trying many things for 4 days now, nothing works. Please help.
I found the answer to my own question. The issue was in the way the bindings are used in WebServiceProvider implementation. If HTTP binding type is used then SOAPMessage cannot be used as a type for Provider. The correct solution here is to use Source (not sure if something else can be used too, didn't try), i.e.