JavaServiceDesc serviceDesc = serviceInfo.getServiceDesc();
targetGBean.setAttribute("pojoClassName", servletClassName);
RPCProvider provider = new POJOProvider();
SOAPService service = new SOAPService(null, provider, null);
service.setServiceDescription(serviceDesc);
service.setOption("className", servletClassName);
HandlerInfoChainFactory handlerInfoChainFactory = new HandlerInfoChainFactory(serviceInfo.getHandlerInfos());
service.setOption(org.apache.axis.Constants.ATTR_HANDLERINFOCHAIN, handlerInfoChainFactory);
URI location;
try {
location = new URI(serviceDesc.getEndpointURL());
} catch (URISyntaxException e) {