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

RequestCreators withSoapEnvelope can not found endpoint

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Minor
    • Resolution: Duplicate
    • Affects Version/s: 3.0.0.RELEASE
    • Fix Version/s: None
    • Component/s: Test
    • Labels:

      Description

      I continue with my project with testing aop and make some basic tests. I find that with version 3.0.0+ RequestCreators.withSoapEnvelope can not find endpoint because of different implementation of SaajSoapMessage. In version 3.0.0+ envelop is already set up because of method getVersion in constructor. And RequestCreators is trying to change document after envelop in SaajSoapMessage si already initialized. I made my custom withEnhancedSoapEnvelope and add just one line to reinitialized envelop after document from test is set and test is now OK:

      soapMessage.setDocument((Document) result.getNode());
      // TODO magic line here
      soapMessage.setSaajMessage(soapMessage.getSaajMessage());

       

      All online in my github:

      https://github.com/hudi1/aop-test/blob/master/src/test/java/org/example/CountryEndpointTest.java

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                hudi Tomas Hudec
              • Votes:
                5 Vote for this issue
                Watchers:
                7 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