Hello,
I'm trying register a client handler at
runtime, the register process seems work fine but when I
invoke to the service method I get the following exception:
java.xml.rpc.JAXRPCException: Unable to create
handler of type com.test.handler.EchoHandler
I'm sure that is not a problem of
classpaths...someone can help me?
This is the code I'm using to register the
handler:
...
Hashtable ht=new Hashtable();
ht.put("bit","128");
HandlerChainImpl chain=new
HandlerChainImpl();
chain.addNewHandler("com.test.handler.EchoHandler",ht);
Iterator
ports=axisService.getPorts();
while(ports.hasNext())
{
QName
qname=(QName)ports.next();
axisService.getHandlerRegistry().setHandlerChain(qname,chain);
}
...
This is the handler...nothing special, it's only an
empty handler
package com.test.handler;
public class EchoHandler extends
BasicHandler
{
public void invoke(MessageContext
mc)
{
System.out.println("test");
}
}
Thanks in advance.