Sharing sessions on client stubs for different services generated by Eclipse?
posted 5 years ago
I am using Eclipse to generate an Axis2 web service client. However, since I have multiple services, I need to generate their codes from different WSDLs which results to multiple stubs. (e.g. Service1 has its own stub. Service2 has its own stub.) I know that when generating a client using Eclipse, the manage session is not set. And so, I have to set it to true. I was able to successfully maintain the session but only for the service I am using. (e.g. When I am using Service1 and then suddenly switch to using Service2, my session on Service1 is not seen on Service2 anymore.) How do I set the 2 services to use the same session? Also, the 2 services that I'm using belongs to the same service group.