You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cxf.apache.org by Daniel Kulp <dk...@apache.org> on 2008/02/01 04:01:46 UTC

Re: changing WSDL port location on HTTP proxied URL

With 2.0.4, we added a publishedEndpointUrl attribute to jaxws:endpoint 
to allow you to specify the exact address that is published in the wsdl.  
That may help.

Dan

On Thursday 31 January 2008, Richard Newton wrote:
> 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
> rnewton@able2buy.com
> 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.



-- 
J. Daniel Kulp
Principal Engineer, IONA
dkulp@apache.org
http://www.dankulp.com/blog