When you navigate to the services page or the WSDL itself from a URL the WSDL 
will cache the host name for all of its URLs.  If you click on the WSDL from 
another host name it will still display the host name from whichever URL first 
navigated to the services page or the WSDL.  For example, if you go to your 
WSDL with this URL http://hostname1/context/Services/soap/MyService?wsdl 
immediately after starting your server, the wsdl import will have as its 
location http://hostname1/context/Services/soap/MyService?wsdl=MyService.wsdl . 
  If I then go to the WSDL from another host, such as 
http://hostname2/context/Services/soap/MyService?wsdl, my wsdl import location 
will still say 
http://hostname1/context/Services/soap/MyService?wsdl=MyService.wsdl.  The only 
way to change this it seems is to restart the server and navigate to the wsdl 
using hostname2 before anything else, but then it caches the second host name.  
This is causing us problems because due to some network configurations we need 
to be able to access the WSDL from several different hosts that redirect.  In 
the past cxf would replace the host name with whatever the calling host was.

Tim


 NOTICE: This email message is for the sole use of the intended recipient(s) 
and may contain confidential and privileged information. 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.


Reply via email to