Hi Deepal, Thank you very much for your response.I did change like this but again the same results. However I must mention here that on the client side I have copied the addressing module to the classpath of eclipse where I am running my client and changed the addressing.mar to addressing.jar.
Regards --- On Mon, 21/2/11, Deepal jayasinghe <[email protected]> wrote: From: Deepal jayasinghe <[email protected]> Subject: Re: [Axis2] Soap session Management, Book Example To: [email protected] Date: Monday, 21 February, 2011, 7:20 You need to change your client code as follows: opts.setTo(new EndpointReference("http://localhost:8080/axis2/services/WSAddSessionService?wsdl")); opts.setAction("urn:add"); opts.setManageSession(true); sc.setOptions(opts); OMElement element = sc.sendReceive(createPayLoad(10)); System.out.println(element.getFirstElement().getText()); element = sc.sendReceive(createPayLoad(10)); System.out.println(element.getFirstElement().getText()); Options opts = new Options(); opts.setTo(new EndpointReference("http://localhost:8080/axis2/services/WSAddSessionService?wsdl")); opts.setAction("urn:add"); sc.setOptions(opts); OMElement element = sc.sendReceive(createPayLoad(10)); System.out.println(element.getFirstElement().getText()); opts.setManageSession(true); sc.setOptions(opts); element = sc.sendReceive(createPayLoad(10)); System.out.println(element.getFirstElement().getText());
