Uploaded image for project: 'ServiceMix Components'
  1. ServiceMix Components
  2. SMXCOMP-407

CXF BC provider doesn't detect automatically the SOAP version of the message to send

    XMLWordPrintableJSON

Details

    • Patch Available

    Description

      The SOAP version of the message sent is always 1.1 because there is no code that changes it.
      I made a patch to the CxfBcProvider class to detect the soap version.
      I dont know if this should be done in an interceptor, i made directly in the CxfBcProvider after retrieving the BindingOperationInfo.

      // Retrieve the BindingOperationInfo
      BindingOperationInfo boi = ......;

      // SOAP 1.2 support
      String bindingId = boi.getBinding().getBindingId();
      if (WSDLConstants.SOAP11_NAMESPACE.equals(bindingId))

      { message.setVersion(Soap11.getInstance()); }

      else if (WSDLConstants.SOAP12_NAMESPACE.equals(bindingId))

      { message.setVersion(Soap12.getInstance()); }

      ///////////

      Attachments

        Activity

          People

            ffang Freeman Yue Fang
            gboccalon Gianfranco Boccalon
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: