}
static Service createSoapServiceWithHandler(String handlerMethodName, String handlerId, Class handlerClass)
throws NoSuchMethodException, JiBXException, WsException {
ServiceDefinition sdef = getServiceDefinition(handlerMethodName);
HandlerDefinition hdef = new HandlerDefinition();
hdef.setClassName(handlerClass.getName());
sdef.setHandlerDefinitions(Arrays.asList(new HandlerDefinition[] { hdef }));
sdef.init();
ServiceFactory serviceFactory = ProtocolDirectory.getProtocol(sdef.getProtocolName()).getServiceFactory();
return ServicePool.getInstance(serviceFactory, sdef);
}