开发者

How to configure port in soap:address in wsdl from the Spring?

开发者 https://www.devze.com 2023-03-18 03:36 出处:网络
The thing is that Apache CXF takes the location attribute from WSDL file and replaces it with the server\'s URL, including the port. Is there any way to set the port manually to a specific value?If it

The thing is that Apache CXF takes the location attribute from WSDL file and replaces it with the server's URL, including the port. Is there any way to set the port manually to a specific value? If it was possible, I would like to do this from Spring...

开发者_开发技巧

The relevant part from WSDL:

...
<port binding="ns:binding" name="someUrl">
  <soap:address location="http://localhost/url"/>
</port>
...


I took the basic endpoint configuration from Apache CXF website and added the publishedEndpointUrl="http://newurl:port/..." attribute to jaxws:endpoint element.

0

精彩评论

暂无评论...
验证码 换一张
取 消