Hi,

I tried to maintain a session with the dynamic client:
  JaxWsDynamicClientFactory dcf = JaxWsDynamicClientFactory.newInstance();
  Client client = dcf.createClient(wsdlUri);
 
client.getRequestContext().put(javax.xml.ws.BindingProvider.BindingProvider.
SESSION_MAINTAIN_PROPERTY, Boolean.TRUE);

This doesn't work. Replacing it with
 
client.getRequestContext().put(org.apache.cxf.message.Message.MAINTAIN_SESSI
ON, Boolean.TRUE);
the cookie headers are successfully preserved along all requests.

Why do I need the CXF-specific constant?

Regards
Dennis

Reply via email to