java如何定义webservice端点url
我不熟悉webservice。我创建了一个具有以下WSDL定义的Web服务
<wsdl:service name="InterfaceService">
<wsdl:port name="InterfaceSOAP"
binding="impl1InterfaceSOAP">
<soap:address
location="http://localhost:9080/MyWeb/services/MyInterface" />
</wsdl:port>
</wsdl:service>
发布Web服务时,Web服务在URLhttp://localhost:9080/MyWeb/InterfaceService而不是http://localhost:9080/MyWeb/services/MyInterfaceURL上可用。 我们如何更改发布Web服务的URL
# 1 楼答案
在websphereapplicationserver中,传统
在web中使用自定义url模式。xml
例如
网络。xml
见正式文件here
在WebSphere Liberty
在ibm ws bnd中使用一个元素。xml
例如
ibmws-bnd。xml
见正式文件here