Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-5365

SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.9.2
    • 2.10.0
    • camel-cxf
    • None
    • Patch Available
    • Unknown

    Description

      When you have a SOAPMessage Provider based CXF endpoint in your Camel route and the message is forwarded to an input stream based processor or producer (e.g., File), it is necessary to have a converter that converts SOAPMessage into InputStream.

      It would be practical to have this conversion method included in CxfConverter.

      I am attaching a test case and a possible implementation.

      This implementation uses CachedOutputStream to make an InputStream from a SOAPMessage. There might be a better way to get an InputStream, but I don't know a simple one.

      Thanks.

      Attachments

        1. trunk-camel-cxf-patch.diff
          6 kB
          Akitoshi Yoshida

        Activity

          People

            njiang Willem Jiang
            ay Akitoshi Yoshida
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: