How to start cxf service on localhost but return external address in wsdl?

后端 未结 2 1625
隐瞒了意图╮
隐瞒了意图╮ 2021-01-14 00:25

I\'m using cxf and jetty behind apache to expose a webservice via soap. The goal is to start jetty on http://localhost:9000 in all cases and have apache proxy to it, but ha

相关标签:
2条回答
  • 2021-01-14 01:17

    Try @WebService(wsdlLocation="http://yourdesiredlocation"). Not sure if it will work.

    0 讨论(0)
  • 2021-01-14 01:18

    The jaxws:endpoint configuration thing has a "publishedEndpointURL" which is used instead of the address if it's specified. In know the servlet uses that properly, not 100% sure on the jetty. They share a lot of code so it MAY work.

    0 讨论(0)
提交回复
热议问题