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

Mtom not working correctly with cxf-bc provider

    XMLWordPrintableJSON

Details

    Description

      Hi,
      I'm using the CXF BC as output component, but I'm not able to send out
      MTOM requests.

      My SA is composed of 2 binding components, both CXF: with the input I
      dont have problems and I receive an MTOM request.
      With the output BC I have the problem that in output the message sent is
      SOAP, not MTOM, and the attachment is missing.

      I saw that there are a lot of Interceptors, I used the following
      (directly from code, actually) :
      outList.add(new MtomCheckInterceptor(true));
      outList.add(new AttachmentOutInterceptor());
      outList.add(new JbiOutWsdl1Interceptor());
      outList.add(new SoapPreProtocolOutInterceptor());
      outList.add(new SoapOutInterceptor(getBus()));

      I changed also my WSDL adding the attribute xmime:expectedContentTypes
      on the binary documents, as stated on the CXF documentation.

      Any suggestion ?

      Thanks

      Attachments

        1. JbiOutInterceptor.java
          6 kB
          Gianfranco Boccalon
        2. CxfBcProvider.java
          13 kB
          Gianfranco Boccalon

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: