On 10/2/10 1:33 PM, Scott Christopher wrote:
On 02/10/2010, at 1:18 AM, Ashwin Karpe wrote:

Not sure why setting the address attribute in the spring.xml file does not
change the address for you since that is the value that overrides the WSDL
address... I know that it works!!!

My apologies, the cxfEndpoint address does allow you to set any hostname, which 
updates the generated WSDL accordingly (I was confusing it with the Jetty 
component, which doesn't allow you to bind to a hostname that doesn't resolve 
to an IP address on a local interface).
The publishedEndpointUrl is just used to reset the Address information from the WSDL, it have nothing to do with the address that the service will be bound to.

The caveat still remains though, as we need the address in the SOAP WSDL to 
specify the use of HTTPS on port 443, and we need the CXF endpoint to use standard 
HTTP on an unprivileged port (>  1024) as we can't run this as a root user.

If this can't be achieved through configuration of the cxfEndpoint bean, I 
guess we'll just have to publish a static WSDL with the correct details.
If you can redirect the ?wsdl request to the CXF endpoint, you still have a chance to use publishedEndpointUrl to do the job.


Regards,
        Scott Christopher.

Just my two cents.

--
Willem
----------------------------------
Open Source Integration: http://www.fusesource.com
Blog:    http://willemjiang.blogspot.com (English)
         http://jnn.javaeye.com (Chinese)
Twitter: http://twitter.com/willemjiang

Reply via email to