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

SOAP Web services are not working anymore since 2.2.1

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Critical
    • Resolution: Won't Fix
    • Affects Version/s: 2.2.1
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      After upgrading from 2.2.0 to 2.2.1 SOAP web services are no longer working, I'm getting null responses.

      Going back to 2.2.0 fixes the issue.

      I'm not really sure what to add to the jira item for you to help with the issue.

      This is the web service template configuration:

      Jaxb2Marshaller marshaller = new Jaxb2Marshaller();
      marshaller.setSupportJaxbElementClass(true);
      marshaller.setContextPath("com.test.project");
      WebServiceTemplate wst = new WebServiceTemplate(marshaller, marshaller);
      String wsdlAddress = "https://localhost/ws";
      wst.setDefaultUri(wsdlAddress);
       
      wst.setMessageFactory(soapMessageFactory());
      wst.setMessageSender(new HttpComponentsMessageSender(httpClientFactory.getSOAPHttpClient()));
      wst.setCheckConnectionForError(false);
      wst.setFaultMessageResolver(new TestFaultMessageResolver());
      wst.setInterceptors(new ClientInterceptor[]{new FaultHandlingInterceptor()});
      return wst;

        Issue Links

          Activity

          Hide
          gregturn Greg Turnquist added a comment -

          I'll take a peek at this regression and see what changed, and what gap got introduced.

          Show
          gregturn Greg Turnquist added a comment - I'll take a peek at this regression and see what changed, and what gap got introduced.
          Hide
          gregturn Greg Turnquist added a comment -

          The newly coded behavior in https://github.com/spring-projects/spring-ws/commit/b6500fe5ac4253f1d17daeaf8e841b9476074200 is that if an interceptor returns false, WebServiceTemplate doesn't send the SOAP message. Does this sound like the situation you are experiencing? If so, are you able to share more details of your setup?

          In your configuration, I can't see what FaultHandlingInterceptor does. If it returns false, then it will cause this new behavior to kick in and return a null.

          The linked issue raises a concern that its possible to get null for either a failed interceptor or null is there is no response to the SOAP message. The suggestion is that such results would be ambiguous.

          Show
          gregturn Greg Turnquist added a comment - The newly coded behavior in https://github.com/spring-projects/spring-ws/commit/b6500fe5ac4253f1d17daeaf8e841b9476074200 is that if an interceptor returns false, WebServiceTemplate doesn't send the SOAP message. Does this sound like the situation you are experiencing? If so, are you able to share more details of your setup? In your configuration, I can't see what FaultHandlingInterceptor does. If it returns false, then it will cause this new behavior to kick in and return a null. The linked issue raises a concern that its possible to get null for either a failed interceptor or null is there is no response to the SOAP message. The suggestion is that such results would be ambiguous.
          Hide
          mooshben Moosh Ben added a comment -

          Hi Greg,
          Thanks a lot for your help.
          Indeed this was the issue.
          After changing handleRequest/handleResponse to return true in the interceptor it now works.
          You can close the issue.

          Show
          mooshben Moosh Ben added a comment - Hi Greg, Thanks a lot for your help. Indeed this was the issue. After changing handleRequest/handleResponse to return true in the interceptor it now works. You can close the issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              mooshben Moosh Ben
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: