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

Reply via email to