【发布时间】:2023-09-26 13:48:01
【问题描述】:
是否可以在单个 WSDL:Service 下将两个或多个 JAX-WS Endpoint 发布为 WSDL:Port 以获得具有以下内容的单个 wsdl?
<definitions ...>
...
<service name="Airport">
<port name="Cargo" binding="tns:CargoBinding">
<soap:address location="http://localhost:9999/"/>
</port>
<port name="Civil" binding="tns:CivilBinding">
<soap:address location="http://localhost:9999/"/>
</port>
</service>
</definitions>
这个想法是将两个逻辑上相似的服务合并到一个之下。我想知道如何使用 Endpoint.publish 实现这一目标?
【问题讨论】:
标签: web-services binding wsdl jax-ws endpoint