开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜