Registering a Web services handler

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.

The following two connectors are for JAX-WS API:
The following two connectors are for JAX-RPC API:
To register a Web services handler for BTTJaxWsConnector or BTTJaxWsJndiConnector, a technical developer must extend the connector and override the public Service createJaxWsService() method. The following is sample code:
public class SampleJaxWsConnector extends BTTJaxWsConnector {

	public Service createJaxWsService() throws WebServiceException{
		if (getHandlerResolver() != null) {
			getHandlerResolver().registerHandler(new SampleHeaderHandler());
		}
		return super.createJaxWsService();
	}
}
To register a Web services handler for the BTTJaxRpcConnector or BTTJaxRpcJndiConnector connectors, the technical developer must extend connector and override the public javax.xml.rpc.Service createJaxRpcService() method. The following is sample code:
public class SampleJaxRpcConnector extends BTTJaxRpcConnector {
	public javax.xml.rpc.Service createJaxRpcService() throws ServiceException {
		this.getJaxRpcServiceProcessors().add(new SampleRpcHandler())
		return super.createJaxRpcService();
	}
}