Results 1 to 4 of 4

Thread: Replacing the context name with WsdlDefinitionHandlerAdapter

  1. #1
    Join Date
    Mar 2006
    Location
    Germany, Karlsruhe
    Posts
    157

    Default Replacing the context name with WsdlDefinitionHandlerAdapter

    Hi,

    i need for testing purposes a quick fix for the
    org.springframework.ws.transport.http.WsdlDefiniti onHandlerAdapter.

    Right now, it places the "location" in WSDL-File with the server name of the HTTP request object. That was very well done, Arjen.

    I need the feature which replaces a String with the currect context name. Example:
    WSDL content:
    location="http://localhost:8080/#CONTEXTNAME#/services"

    Replaced at runtime with:
    location="http://localhost:8080/aim1/services"
    or
    location="http://localhost:8080/aim2/services"
    or
    location="http://localhost:8080/aimPerfTest/services"

    It is necessary to deploy more than 1 server version to one (tomcat) server.
    I think that it should not be much work, but i don't understand how the
    WsdlDefinitionHandlerAdapter works.

    I think it is also interesting for other users.
    What do you think Arjen?

    Ingo

  2. #2

    Default

    If you just specify location="/services" in WSDL, the resulting URL should be "currentscheme://currenthostname:currentport/currentcontext/services".

    Wouldn't that be sufficient for your needs?

    Cheers,
    -Ralph.

  3. #3
    Join Date
    Mar 2006
    Location
    Germany, Karlsruhe
    Posts
    157

    Default

    Thank you Ralph!
    It is fully sufficient.

    Arjen should add it to the SWS documentation.

    Ingo

  4. #4

    Default

    Glad I could help. This seems to be a minor bug in the JavaDocs:

    It says:
    If the given location ... is a relative url, the scheme, server name, and port are prepended.
    It should say:
    If the given location ... is a relative url, the scheme, server name, port and context path are prepended.
    You might want to raise an issue in SWS Jira.

    Cheers,
    -Ralph.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •