Announcement Announcement Module
Collapse
No announcement yet.
Endpoint URL set dynamically to host name? Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Endpoint URL set dynamically to host name?

    Hi all,

    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?

    Code:
        
    <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" />  
    </bean>
Working...
X