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

SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.9.2
    • Fix Version/s: 2.10.0
    • Component/s: camel-cxf
    • Labels:
      None
    • Patch Info:
      Patch Available
    • Estimated Complexity:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: