This content has been marked as final. 
    
Show                 1 reply
    
- 
        
1. Re: WebServiceContext
ropalka Oct 13, 2010 2:25 AM (in response to sej)Yes, your webservice clients have to be configured to handler sessions properly.
Here's the sample code:
QName serviceName = new QName(targetNS, "ServiceName"); wsdlURL = new URL(wsdlURLString)Service service = Service.create(wsdlURL, serviceName); HelloWorldIface proxy = (HelloWorldIface)service.getPort(HelloWorldIface.class); ((BindingProvider)proxy).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY, true); proxy.invokeSomeMethod(); // this will handle/propagate sessions properly