We are currently creating a Web Service using CXF configured with Spring
and Jax-ws annotations.
 
The web service runs on a server that is proxied (using Apache 2 httpd)
from an external URL to the internal URL.
 
So, the public URL of the WSDL is (for example) -
 
    https://public.url/services/aservice?wsdl
 
The internal location (un-proxied) of this URL is -
 
    http://internal.server:8088/services/aservice?wsdl
 
When an external request for the WSDL comes in, the <wsdl:port> section
specifies the location of the service as follows -
 
<wsdl:service name="AService">
    <wsdl:port binding="tns:AServiceSoapBinding" name="APort">
        <soap:address
location="http://internal.server:8088/services/aservice"/>
    </wsdl:port>
</wsdl:service>


The question :

Is there any way of changing the automatically generated WSDL port
location through the Spring configuration files ?

I want the <soap:address> to be the EXTERNAL URL, not the internal one.

The solution needs to work for deployment to several servers with
different external URLS (we have various development and testing
servers).



Thanks in advance for any helpful replies !!

Richard Newton


Richard Newton
Analyst Developer
IT Department
Tel 0870 118 1918
Fax 0870 118 2068
[EMAIL PROTECTED]
able2buy
able2buy is a trading style of Matt E-commerce Solutions Limited.
This e-mail is confidential. 

Matt E-commerce Solutions Limited, 400 Metroplex, Broadway, Salford, 
Manchester, M50 2UE, Registered in England, Company number 6370751.

Reply via email to