Hey,

Very new to Java. Trying to consume a web service (using wscompile generated stubs) and process the SOAP message in a handler before it gets sent out.

The handler is not being called no matter what I try.

Code:

Java Code:
ApiService_Impl impl = new ApiService_Impl();
Stub stub = (Stub)(impl.getApiSoapPort());
stub._setProperty(javax.xml.rpc.Stub.ENDPOINT_ADDRESS_PROPERTY, "SOAP_ENDPOINT");

Iterator iter = impl.getPorts();
List handlerChain = new ArrayList();
handlerChain.add(new HandlerInfo(ClientAuthenticator.class, null, null));

            HandlerRegistry registry = impl.getHandlerRegistry();

            while (iter.hasNext()){
                registry.setHandlerChain((QName)iter.next(), handlerChain);
            }
Any help would be really appreciated.

Thanks