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

WebServiceTemplate always creates SaajSoapMessageFactory instead of only DomPoxMessageFactory

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 1.0.1
    • Fix Version/s: 1.0.2
    • Component/s: Core
    • Labels:
      None

      Description

      When using the WebServiceTemplate with an alternate MessageFactory like DomPoxMessageFactory it nevertheless creates an instance of SaajSoapMessageFactory and then replaces this with the DomPoxMessageFactory.

      I think it has to do with this constructor, where "this" should be called after setMessageFactory(messageFactory) and not before:

      public WebServiceTemplate(WebServiceMessageFactory messageFactory)

      { this(); setMessageFactory(messageFactory); afterPropertiesSet(); }

        Attachments

          Activity

            People

            • Assignee:
              arjen.poutsma Arjen Poutsma
              Reporter:
              mikewiesner Mike Wiesner
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: