You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by Roberto Deandrea <ro...@primeur.com> on 2005/11/29 11:54:10 UTC

Client handler Request Help


Hi everybody.
>From AXIS docs I did not understand how is possible to register and use a simple client Handler.
I tryed a sample handler (wich sign and encrypt a message) where a simple web service and a client application are involved.

The client code was modified to use a client handler as following:

...............

Service svc = svcFactory.createService(wsdlUrl, svcQName);

HashMap configProps = new HashMap();configProps.put("keyStoreFile", "client.ks");configProps.put("trustStoreFile", "client.ts");configProps.put("certEntryAlias", "serverkey");

Class handlerClass = org.jstk.wss4axis.WSSClientHandler.class;

java.util.List list = svc.getHandlerRegistry().getHandlerChain(new QName(nameSpaceUri, portName));

list.add(new javax.xml.rpc.handler.HandlerInfo(handlerClass, configProps, null));

...............



The handler is not invoked, because I don't see any System.out.println() in the hanlder class.

What's wrong with this?

Are there any other means to call a client handler?

Thanks in advance.

Roberto Deandrea
Primeur Security Services


web: http://www.primeur.com
e-mail: roberto.deandrea@primeur.com
phone: +39 010 8619346