我遇到需要将axis2 WS迁移到CXF WS的情况。在axis2中生成的WSDL具有一个端点,但是具有多个端口。但是,我无法找到一种方法来配置CXF以执行相同的操作。请让我知道如何使CXF生成如下内容:
<wsdl:service name="Portal">
<wsdl:port name="PortalHttpEndpoint" binding="ns:PortalHttpBinding">
<http:address location="http://<host>:<port>/<context>/services/Portal.PortalHttpEndpoint/"/>
</wsdl:port>
<wsdl:port name="PortalHttpSoap11Endpoint" binding="ns:PortalSoap11Binding">
<soap:address location="http://<host>:<port>/<context>/services/PortalHttpSoap12Endpoint"/>
</wsdl:port>
<wsdl:port name="PortalHttpSoap12Endpoint" binding="ns:PortalSoap12Binding">
<soap12:address location="http://<host>:<port>/<context>/PortalIntegration.PortalHttpSoap12Endpoint/"/>
</wsdl:port> </wsdl:service>