change the soap:address location in generated wsdl

主宰稳场 提交于 2020-01-01 10:58:27

问题


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>

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?

I would like to see the address as

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

回答1:


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

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

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



来源:https://stackoverflow.com/questions/21479854/change-the-soapaddress-location-in-generated-wsdl

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!