Depal, But then it does not need WS-Addressing to be engaged! Correct or Not? WS-Addressing adds into SOAP-Headers! Or what is the reason to engage WS-Addressing with REST if REST does not have any SOAP-Headers? Josef
-----Ursprüngliche Nachricht----- Von: Deepal jayasinghe [mailto:deep...@gmail.com] Gesendet: Mittwoch, 18. Mai 2011 15:39 An: java-user@axis.apache.org Betreff: Re: Stub generated using Axis2 is unable to Maintain session between RESTful service and Client Hi, What type of session you are using ? are you using SOAPSession? If you are using SOAPSession, then it does not work with REST. In the case of REST it does not send any addressing headers, so SOAPSession does not work. However, if you use transport session this should work. Deepal > Hi, > > I created a webservice and enabled session management on both server > and client. It works FINE until I enable REST on the client by adding > the 3rd line of code in the serviceStub.java. > The session management stops working. > > // add session management > _serviceClient.getOptions().setManageSession(true); > _serviceClient.engageModule("addressing"); > > // enable REST > _serviceClient.getOptions().setProperty(Constants.Configuration.ENABLE_REST, > Constants.VALUE_TRUE); > > Again if a comment the last line of code, session management is re-enabled. > > Is that a bug or am I missing something? > > I am using: > > * Axis2 1.5.4 > * Tomcat 7.0.8 > > Thanks for your help! > > --------------------------------------------------------------------- > To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org > For additional commands, e-mail: java-user-h...@axis.apache.org > > --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: java-user-unsubscr...@axis.apache.org For additional commands, e-mail: java-user-h...@axis.apache.org