silvia_magrelli wrote:
> Hello,
> 
> I'm using cxf 2.1.3, and I'd like to know if like in axis
> there is the possibility to mantain a conversational state 
> with a web service, like the setMaintainSession() method of Call in axis do.
> (Precisely I publish a cxf service in servicemix, can somebody tell me if I 
> can establish a session with a cxf client or another type of client outside 
> the bus?)
> 
> Sorry if I didn't understand or not look at the right documentation,
> Please help me.

With JAX-WS, once you have the stub you can do

((BindingProvider)cxfStub).getRequestContext().put(
              BindingProvider.SESSION_MAINTAIN_PROPERTY,
              Boolean.TRUE);

All JAX-WS client stub objects implement BindingProvider in addition to
the service interface.

Ian

-- 
Ian Roberts               | Department of Computer Science
[email protected]  | University of Sheffield, UK

Reply via email to