You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by cr...@gmail.com,
cr...@gmail.com on 2019/02/03 11:29:53 UTC
why not HTTPTransportFactory no longer implements the WSDLEndpointFactory
In the 2.7.x version I can publish the WebService service like this
HTTPTransportFactory transportFactory = new HTTPTransportFactory();
ServerFactoryBean serverFactoryBean = new ServerFactoryBean();
serverFactoryBean.setAddress(url.getAbsolutePath());
serverFactoryBean.setServiceClass(type);
serverFactoryBean.setServiceBean(impl);
serverFactoryBean.setBus(bus);
serverFactoryBean.setDestinationFactory(transportFactory);
serverFactoryBean.create();
but in the 3.2.x version, since the HTTPTransportFactory no longer implements the WSDLEndpointFactory
interface, it returns null when calling ServerFactoryBean#getWSDLEndpointFactory, which results
in the <soap:address location/> tag. Lost, how should this problem be solved?
Best Regards!
Zhongming Hua