Results 1 to 3 of 3

Thread: Best Practice? PayloadRootQNameEndpointMapping & SoapActionEndpointMapping

  1. #1
    Join Date
    Dec 2006
    Location
    San Francisco Bay Area
    Posts
    70

    Default Best Practice? PayloadRootQNameEndpointMapping & SoapActionEndpointMapping

    As it states in the 'airline' sample's applicationContext-ws.xml:

    The MessageDispatcher is responsible for routing messages to endpoints. It uses three endpoint mappings to determine the endpoint suitable for handling a particular incoming request. Having three mappings is not a recommended approach, it's done here only for illustration purposes.

    Can you offer us any best practices or rules of thumb for when each of these mappings should be used?

    • PayloadRootQNameEndpointMapping
    • SoapActionEndpointMapping
    • SoapActionEndpointMapping with XwsSecurityInterceptor


    With just the airline sample as a guideline, was the use of the SoapActionEndpointMapping for the update transaction an intentional choice? And is the PayloadRootQNameEndpointMapping a lighter-weight solution that should be used for queries? Or am I reading too much into this sample?

  2. #2
    Join Date
    Jul 2005
    Location
    Rotterdam, the Netherlands
    Posts
    1,562

    Default

    The fact that the latter has a security interceptor is just to show how WS-Security works. Since interceptors are wired at the handler level, you can have some operations use WS-Security, while others don't.

    The PayloadRootQNameEndpointMapping parses the payload, so that is slow(er). However, it is transport agnostic, so if you want to do SOAP 1.1 or 1.2 over something like TCP/IP, use this one.

    The SoapActionEndpointMapping uses the special mime header SOAPAction. In SOAP 1.2, this has been deprecated. The good news is that it's relatively fast, since you don't need to parse the payload. So if you have larger messages under SOAP 1.1, and want to make it as fast as possible, use this mapping.
    Arjen Poutsma

    Spring Web Services Dev Lead
    Please read the FAQ

  3. #3
    Join Date
    Jun 2009
    Posts
    1

    Default

    Mr Arjen Poutsma, you said: "you can have some operations use WS-Security, while others don't."

    How could i do that? Im working with annotations but anyway, i couldnt find any example, article or forum message where i had some secure operations and others not.


    thanks

Posting Permissions

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