Endpoint URL set dynamically to host name?
I am being told that it is possible to set a Spring Webservice so that the default Endpoint the WSDL gives is set dynamically to the hosts name. Is this possible? How do you set this up?
I'm told it is something to do with your definition of your defaultWsdl11Defintion bean and setting the LocationUri. But so far, I have had no luck in getting this to work. I found one spring article (http://static.springsource.org/sprin...ublishing-wsdl section 3.7) which said to set it like this, but that just made the endpoint in Soap UI show up as "/FooService/" as the default endpoint.
So basically my question is, how do I get this to show up with the hostname?
<bean id="FooService" class="org.springframework.ws.wsdl.wsdl11.DefaultWsdl11Definition">
<property name="schemaCollection" ref="schemaCollection" />
<property name="portTypeName" value="FooSubmission" />
<property name="locationUri" value="/FooService/" />
<property name="targetNamespace" value="http://com.blah.foo" />