5 Replies Latest reply on Nov 14, 2011 1:07 AM by mpalvankar

    camel http-mime-soap ?

    rchallapalli

      Hi,

      Is there a camel component/dataformat that can handle soap messages with attachments? The camel-http gives the entire http post body as body in the message Exchange whithout any consideration to the content-type (multipart/related..) set. I there a component that understands soap with attachments and gives me the mime root as the exchange body and the soap attachments in the Exchange?

      Tried/tired alot solving this.

       

      Or writing a custom marshaller/unmarshaller is the only way??

       

      Uing: Fuse ESB/camel-blueprint

       

      Thanks in advance!

       

      ravi

       

      Edited by: rchallapalli on Nov 11, 2011 10:04 AM

       

      Edited by: rchallapalli on Nov 11, 2011 10:07 AM

        • 1. Re: camel http-mime-soap ?
          ffang

          Hi,

           

          I believe camel-cxf can do this task.

           

          Freeman

          • 2. Re: camel http-mime-soap ?
            rchallapalli

            Thanks Freeman!

            My messages are not WSDL compliant but wrapped inside SOAP. So don't need the CXF stack/capabilities. CXF mandates wsdl usage(?).

             

            tried bit camel-soap which is cxf minus wsdl but it relies on JAXB. I need my XML's as Input/DOM..or atleast a as String sources.

             

            I could write my own marshaller but don't want to get into that as I am supposed to analyze how well this product (Fuse/ESB) fits out of box for our application POC.

             

            Thanks,

            Ravi

            • 3. Re: camel http-mime-soap ?
              njiang

              So you just want to handle the attachements with SOAP message.

              You can implement a processor to that kind of work yourself, then pass the message to other camel endpoint.

               

              I don't think current camel-cxf component can fit your needs.

               

              Willem

              • 4. Re: camel http-mime-soap ?
                rchallapalli

                Hi,

                Hope you are referring to SOAP with attachments (http://www.w3.org/TR/SOAP-attachments not just a SOAP message as MIME attachments.

                I did, for time being, write a Processor which does limited job to progress with my POC but that isn't an implementation of SOAP with attachments. looking for some open source implementation of the same to use inside the processor if not a camel component exists.

                 

                Thanks,

                Ravi

                 

                Edited by: rchallapalli on Nov 12, 2011 11:45 PM

                • 5. Re: camel http-mime-soap ?
                  mpalvankar

                  I too have the same issue with camel-http, as the external web service that I call using camel-http sends SOAP message with attachments.

                   

                  I can not use CXF as the SOAP messages are RPC/encoded and CXF does not support RPC/encoded.

                   

                  I too wrote a Processor but does not give me the content-types and this is the issue if we receive multiple attachments. If there is any component do let me also. I am also struggling with this issues.