If you are using Serlvet Transport, CXF will update the endpoint address according the request dynamically. But for the Jetty transport I don't think we have this feature.

On 4/22/11 2:01 PM, ext2 wrote:
Hi:
        I am using cxf's jetty transport.

        Because I don't know the real ip where the webservice will be deploy
to,  so I always configured the jaxws-endpoint with ip "127.0.0.1" in the
spring. And configure the http-engine to bind to any ip available;

        But unfortunately , at runtime, if I request the wsdl using the real
ip , the endpoint in the wsdl is always "127.0.0.1" , but not the real ip of
server;
        For example, if I request wsdl throw
http://some-real-ip:8081/test?wsdl or http://server-host-name:8081/test?wsdl

The response  wsdl 's endpoint will always be :
        <soap:address location="http://localhost:8081/test "/>

Could CXF replace the endpoint's host with the request url's host?


Thanks any suggestion







--
Willem
----------------------------------
FuseSource
Web: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: willemjiang

Connect at CamelOne May 24-26
The Open Source Integration Conference
http://camelone.com

Reply via email to