Announcement Announcement Module
No announcement yet.
Endpoint URL set dynamically to host name? Page Title Module
Move Remove Collapse
Conversation Detail Module
  • 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 ( 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="">  
            <property name="schemaCollection" ref="schemaCollection" />  
            <property name="portTypeName" value="FooSubmission" />  
            <property name="locationUri" value="/FooService/" />  
            <property name="targetNamespace" value="" />