Uploaded image for project: 'Spring Web Services'
  1. Spring Web Services
  2. SWS-254

Add an EndpointAdapter that adapts to a MethodEndpoint for a methos with one Source param containing the payload

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: None
    • Fix Version/s: 2.0 GA
    • Component/s: Core
    • Labels:
      None

      Description

      Make an adaptor that makes it possible to use the PayloadRoot annotation on a method taking a single parameter javax.xml.Source. The parameter should be a java.xml.Source reference to the payload of the message.
      The Source param is very convinient when implementing XPath in the endpoint without using the XPathParam annotation.

      @PayloadRoot(localPart = TRACKING_MESSAGE_INFO, namespace = NAMESPACE_XQ)
      public Source invokeTrackingMessageInfo(Source request) throws Exception

      {...}

      This issue is solved by adding the class SourceParamMethodEndpointAdapter that adapts to a MethodEndpoint and supports all methods taking exactly one Source parameter.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                arjen.poutsma Arjen Poutsma
                Reporter:
                tola2000 Tom Lambrechts
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Time Tracking

                  Estimated:
                  Original Estimate - 1h
                  1h
                  Remaining:
                  Remaining Estimate - 1h
                  1h
                  Logged:
                  Time Spent - Not Specified
                  Not Specified