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

Full streaming WebServiceMessage/SoapMessage

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.0 RC1
    • Component/s: Core
    • Labels:
      None

      Description

      Currently, WebServiceMessage and its subinterface SoapMessage offer the getSource() and getResult() methods to the contents of the payload. When an endpoint is invoked, the response Source it returns is transormed into the Result of the response message. This transformation has the benefit that the message is always in sync, i.e. the writeTo() method will write the current contents of the message. The downside is that this transformation is rather slow, since a DOM/Axiom tree needs to be built.

      As an alternative, we could do this conversion lazily: if we introduce a setSource(Source) method on the WebServiceMessage (or an sub-interface which extends WebServiceMessage), we could simply set the result of the endpoint on the response message, not creating a DOM tree (yet). Later, when the message is written to the transport stream, we directly transform the set payload Source to the stream, thus saving overhead.

      In a way, this is similar to SWS-302, but has the extra benefit that the payload contents is not kept in a buffer.

        Issue Links

          Activity

          Transition Time In Source Status Execution Times Last Executer Last Execution Date
          Open Open Resolved Resolved
          223d 21h 4m 1 Arjen Poutsma 12/Dec/08 9:59 PM
          In Progress In Progress Open Open
          60d 5h 33m 1 Arjen Poutsma 30/Jul/10 2:11 AM
          Open Open In Progress In Progress
          25d 1h 41m 1 Arjen Poutsma 24/Aug/10 3:52 AM
          Resolved Resolved Reopened Reopened
          41d 22h 49m 2 Arjen Poutsma 06/Oct/10 5:21 AM
          Reopened Reopened In Progress In Progress
          568d 19h 48m 2 Arjen Poutsma 10/Nov/10 2:30 AM
          In Progress In Progress Resolved Resolved
          1d 3h 19m 2 Arjen Poutsma 10/Nov/10 3:10 AM
          Resolved Resolved Closed Closed
          541d 3h 53m 1 Arjen Poutsma 04/May/12 7:03 AM

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              arjen.poutsma Arjen Poutsma
            • Votes:
              16 Vote for this issue
              Watchers:
              20 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Time Tracking

                Estimated:
                Original Estimate - 5d
                5d
                Remaining:
                Time Spent - 1d 1h 17m Remaining Estimate - 3d 6h 43m
                3d 6h 43m
                Logged:
                Time Spent - 1d 1h 17m Remaining Estimate - 3d 6h 43m
                1d 1h 17m