|
Hi, In fact, my problem is as follows : So when the startFamily method is called in a client with the stub, attributes of the MyServiceSkeleton class are initialised. But after that, if you call the decode method you can see the "UNINITIALIZED FAMILY" message public class MyServiceSkeleton{ private boolean initFamily = false; public example.ws.ReturnDecodeElementDocument decode (example.ws.DecodeElementDocument param0 ) { DecodeElement decode = param0.getDecodeElement(); byte[] msg = decode.getMsgElement(); if (initFamily) System.out.println("decode msg"); else { System.out.println("UNINITIALIZED FAMILY"); return null; } ReturnDecodeElementDocument retDoc = ReturnDecodeElementDocument.Factory.newInstance(); ReturnDecodeElement retElement = ReturnDecodeElement.Factory.newInstance(); retElement.setMsgElementArray(retour); retDoc.setReturnDecodeElement(retElement); return retDoc; } public void stopFamily (example.ws.StopFamilyElementDocument param2 ) { System.out.println("Stop family"); } public void startFamily (example.ws.StartFamilyElementDocument param3 ) { System.out.println("Start family"); initFamily = true; } } Deepal Jayasinghe wrote: Hi Jean; Where do you want to do this , is it at the handler level? Can you please explain the problem a bit.Jean-Michel PATER wrote:Hi, I'm using Axis2-1.0 and I'd like to do something which was available in axis 1.x. In axis 1.x, you could do : MyServiceLocator serviceLocator = new MyServiceLocator() ; .... MyService myService = serviceLocator.getmyservice(); And then, you can access the implementation class properties and methods. Is there something like this in Axis2 ? --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Jean-Michel PATER <[EMAIL PROTECTED]> Cogenit Tél : +33 (0) 1 40 20 08 43 53 rue Sainte Anne Fax : +33 (0) 1 40 20 08 45 75002 Paris <URL:http://www.cogenit.fr> |
- Re: [Axis2] HowTo access Implementation class properties Deepal Jayasinghe
- Re: [Axis2] HowTo access Implementation class prope... Ajith Ranabahu
- Re: [Axis2] HowTo access Implementation class p... Jean-Michel PATER
- Re: [Axis2] HowTo access Implementation class prope... Jean-Michel PATER
