we have both webservices (synchronous request/responses and asynchronous events from legacy system). Synchronous requests are towards the legacy system and asynchronous events reported from the legacy system are reported to client invoked using asynchronous webservice request implemented in the clientside webserver.
There is a need to maintain user session per client throughout the session.
Can somebody suggest the solution.
Service service = Service.create(wsdlURL, serviceName);
YourServiceIface proxy = (YourServiceIface)service.getPort(YourServiceIface.class);
((BindingProvider)proxy).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true);