My JAX-RS+JAX-WS webservice is accessible via multiple URLs, and the WADL provided by CXF (from my pre-built version) contains as its endpoint whichever URL was used to access the server since first boot. UriInfo and the service listing URLs also act in the same way in that they remember whoever connects first. But the WSDL and link to WSDL from service page works perfectly. Is this a bug in CXF or did I misconfigure something? This is a big issue because even in real use, multiple URLs will be used.
The project uses CXF 2.7.7 and Jetty 9. The WADL, XSD, and WSDL are pre-built and provided to CXF, which modifies WADL and WSDL to point to proper URLs. Sometimes Jetty serves directly, in other cases there is an Apache reverse proxy, and in this case ProxyPreserveHost On is set so that HTTP Host header is appropriate, and I am using X-Forwarded-* headers as well as in Jetty I use the org.eclipse.jetty.server.ForwardedRequestCustomizer to listen to these headers. I figured between those two techniques, the issue would be resolved but it is not. I can't figure out any way to work around this problem, either, because CXF can only generate absolute URL links in the WADL/WSDL. Jason Winnebeck ---------------------------------------------------------------------- This email message and any attachments are for the sole use of the intended recipient(s). Any unauthorized review, use, disclosure or distribution is prohibited. If you are not the intended recipient, please contact the sender by reply email and destroy all copies of the original message and any attachments.
