Spring 我们可以更改<;soap:地址位置>;动态-使用JAX-WS

Spring 我们可以更改<;soap:地址位置>;动态-使用JAX-WS,spring,jax-ws,jaxws-maven-plugin,Spring,Jax Ws,Jaxws Maven Plugin,我是SOAPWeb服务新手,想知道我们能否根据部署的环境更改soap:address的位置。我正在使用jaxws-spring <binding name="HelloWorldWSPortBinding" type="tns:HelloWorldWS"> <soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" /> <operation name="getHel

我是SOAPWeb服务新手,想知道我们能否根据部署的环境更改soap:address的位置。我正在使用jaxws-spring

<binding name="HelloWorldWSPortBinding" type="tns:HelloWorldWS">
<soap:binding transport="http://schemas.xmlsoap.org/soap/http" style="document" />
<operation name="getHelloWorld"></binding>
<service name="HelloWorldWSService">
<port name="HelloWorldWSPort" binding="tns:HelloWorldWSPortBinding">
<soap:address location="http://localhost:8095/WebServicesExample/hello" />
</port>
</service>
</definitions>


要将soap地址位置更改为什么?你能举一个例子说明你对位置字段的期望吗?看起来您的tomcat正在端口8095上运行,您正在通过端口8095访问它localhost@sariq,当我在本地运行时,它正确地获取了地址,但是当我在生产服务器上部署它时,它应该正确地获取生产url吗?但对我来说,它的名字是loclhost:8080/WebservicesExample/Hello。如何将此wsdl共享给客户端在生产服务器上部署时会出现什么错误,以及尝试访问哪个URL?生产服务器URL,如果您可以提及的话。没有错误,唯一的问题是它将指向本地主机。我无法在此处共享生产url