String address = baseUrl + "/cxf/soap/accountservice";
JaxWsProxyFactoryBean proxyFactory = new JaxWsProxyFactoryBean();
proxyFactory.setAddress(address);
proxyFactory.setServiceClass(AccountSoapService.class);
AccountSoapService accountWebServiceProxy = (AccountSoapService) proxyFactory.create();
// (可选)演示重新设定endpoint address.
((BindingProvider) accountWebServiceProxy).getRequestContext().put(BindingProvider.ENDPOINT_ADDRESS_PROPERTY,
address);