Is it possible to have servicemix-cxf-bc automatically insert it's own
hostname/IP address into the <soap:address location="..." /> element of the
WSDL that ServiceMix serves?

I used the following in my xbean.xml:

<cxfbc:consumer wsdl="file:/home/smx/resources/ServiceA.wsdl"
locationURI="http://0.0.0.0:8190/Services/ServiceA"; targetService="..." /> 

I expected 0.0.0.0 to be replaced by the machine's IP address when the WSDL
was requested via http://0.0.0.0:8190/Services/ServiceA?wsdl, but this
didn't happen and the client ended up trying to invoke itself!

This would be very helpful for cases where you need to have one generic WSDL
to deploy on many machines that will be offering the service, but don't want
to have to modify the WSDL for each machine...

Any ideas if the current servicemix-cxf-bc component is capable of doing
this substitution?


-- 
View this message in context: 
http://www.nabble.com/servicemix-cxf-bc-locationURI-tp20686030p20686030.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to