I am new to web services. I have a JAX-WS service for which I need to implement a session mechanism. SOAP messages are sent over HTTP, we use WebLogic, so the JAXWS application is deployed to the WebLogic application server and the services are accessible from the WSDL document.
I have @WebServiceProvider (a class that implements Provider <SOAPMessage>)
Now, when I run the login request, I want the JSESSIONID session cookie to be sent back, but we do not want to use CXF or anything else, just the so-called Metro, which, frankly, I still do not quite understand. We also do not want to make this a permanent cookie, so manually adding a cookie to the response header is also not an option. But it works, I tried. I just don't understand why the session cookie is not configured automatically.
I searched the Internet and tried many things for 4 days, nothing works. Please, help.
source share