更改生成的wsdl中的soap:address位置 [英] change the soap:address location in generated wsdl

查看:508
本文介绍了更改生成的wsdl中的soap:address位置的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用JAX-WS注释来创建在JBOss 5.1.0 G.A上运行的soap服务,最后生成的WSDL具有以下含义-

I am using JAX-WS annotation to create soap services running on JBOss 5.1.0 G.A, the generates WSDL has got the following bit at the end -

<service name="DataServiceService">
 <port binding="tns:DataServiceBinding" name="DataServicePort">
  <soap:address location="http://mymachine:8080/myapp/webservice" /> 
  </port>
  </service>

我已在端口8443上启用了服务https,我能够使用正确的协议和端口号连接到该服务,但是有一种方法可以更改生成的wsdl中的肥皂地址,以使客户端不会不必更改吗?

I have made the service https enabled on port 8443, I am able to connect to the service using the right protocol and port number but is there is a way to change the soap address in the generated wsdl so that the clients don't have to change it?

我希望看到的地址是

<soap:address location="https://mymachine:8443/myapp/webservice" /> 

推荐答案


中注释以下行 服务器/{instance}/deployers/jbossws.deployer/META-INF/jboss-beans.xml

Comment the following line in
server/{instance}/deployers/jbossws.deployer/META-INF/jboss-beans.xml

<property name="webServiceHost">${jboss.bind.address}</property>  

通过这种方式,引擎应该使用用于调用servlet的主机/端口重写soap:address,从而为您提供wsdl.

This way the engine should rewrite the soap:address using the host/port used to invoke the servlet providing you the wsdl.

这篇关于更改生成的wsdl中的soap:address位置的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆