我们目前已经使用以下 URL 公开了 JAX-RPC 网络服务
http://xx.xx.xx.xx/myservice/MYGatewaySoapHttpPort?wsdl
我们通过从上面的 WSDL 生成 WebService 将 webservice 迁移到 JAX-WS
但是可以从以下 URL 访问新的网络服务
http://xx.xx.xx.xx/myservice/MYGateway?wsdl
如何使我的 JAX-WS webservice 可以通过首先提到的相同 URL 访问?让我们的客户没有任何问题。
更新:
我创建的 WSDL 的服务元素符合预期
<WL5G3N0:service name="MyGateway">
<WL5G3N0:port binding="WL5G3N2:MyGatewaySoapHttp" name="MyGatewaySoapHttpPort">
<WL5G3N3:address location="http://xx.xx.xx/myservice/MyGatewaySoapHttpPort"/>
</WL5G3N0:port>
</WL5G3N0:service>
但是 JAX-WS 的 WSDL 不一样,这个 WSDL 是自动生成的。
<WL5G3N0:service name="MyGateway">
- <WL5G3N0:port binding="WL5G3N2:MyGatewaySoapHttp" name="MyGatewaySoapHttpPort">
<WL5G3N3:address location="http://xx.xx.xx/myservice/MyGateway" />
</WL5G3N0:port>
</WL5G3N0:service
我使用 Oracle Eclipse Indigo 创建了 Web 服务。
我可以用任何注释进行更改吗?
问候,