Forwarding with the correct prefix. Back in my axis 1.x days I did that type of thing. In axis2 try ServiceClient --> AxisService, using that you can get access to handler chains via AxisOperation.
Do we have docs for client side handler chains? If not, Jatinder, when you get this working you can help us with that if you'd like. HTH, Robert ---------- Forwarded message ---------- From: Jatinder Kaur <[EMAIL PROTECTED]> Date: Nov 27, 2006 5:58 PM Subject: How to add custom SOAP Headers in Client Code To: [email protected] Hi All, I am a newbie in this field -- so any help is greatly appreciated. I've a custom class file that implements javax.xml.rpc.Handler class. In this custom class, I am setting the username and password in the handleRequest method. The server returns a session ID back that I am extracting in handleResponse method implementation. How can I link my custom class to the client code that I've generated using Axis2. In Axis 1.4, I used something like this: java.util.List list = service.getHandlerRegistry().getHandlerChain(new QName(" http://xyz.com/webservices", "createResponse")); list.add(new javax.xml.rpc.handler.HandlerInfo( WebSessionHandler.class,null,null)); WebMarketingPort myProxy = (WebMarketingPort) service.getPort(new QName("http://xyz.com/webservices", "createResponse"), WebMarketingPort.class); Since I don't have the Port classes in Axis2 ( I just have the stub class), what is the best way to incorporate my custom class in the client code. If you can please provide some code or point me to some documentation, that would be great. Thanks, Jatinder
