To register a Web services handler, a technical developer must extend the WebSphere® Multichannel Bank Transformation Toolkit Web services connectors. WebSphere Multichannel Bank Transformation Toolkit provides four Web Services connectors.
public class SampleJaxWsConnector extends BTTJaxWsConnector { public Service createJaxWsService() throws WebServiceException{ if (getHandlerResolver() != null) { getHandlerResolver().registerHandler(new SampleHeaderHandler()); } return super.createJaxWsService(); } }
public class SampleJaxRpcConnector extends BTTJaxRpcConnector { public javax.xml.rpc.Service createJaxRpcService() throws ServiceException { this.getJaxRpcServiceProcessors().add(new SampleRpcHandler()) return super.createJaxRpcService(); } }