You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Aki Yoshida (JIRA)" <ji...@apache.org> on 2012/06/13 14:11:42 UTC

[jira] [Created] (CAMEL-5365) SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios

Aki Yoshida created CAMEL-5365:
----------------------------------

             Summary: SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios
                 Key: CAMEL-5365
                 URL: https://issues.apache.org/jira/browse/CAMEL-5365
             Project: Camel
          Issue Type: Improvement
          Components: camel-cxf
    Affects Versions: 2.9.2
            Reporter: Aki Yoshida
            Priority: Minor


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.


--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (CAMEL-5365) SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang resolved CAMEL-5365.
---------------------------------

       Resolution: Fixed
    Fix Version/s: 2.10.0

Applied patch with thanks to Aki, I also reformatted the code and cleaned up the spring configuration file.
                
> SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5365
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5365
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: 2.9.2
>            Reporter: Aki Yoshida
>            Assignee: Willem Jiang
>            Priority: Minor
>             Fix For: 2.10.0
>
>         Attachments: trunk-camel-cxf-patch.diff
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Assigned] (CAMEL-5365) SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios

Posted by "Willem Jiang (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Willem Jiang reassigned CAMEL-5365:
-----------------------------------

    Assignee: Willem Jiang
    
> SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5365
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5365
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: 2.9.2
>            Reporter: Aki Yoshida
>            Assignee: Willem Jiang
>            Priority: Minor
>         Attachments: trunk-camel-cxf-patch.diff
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Updated] (CAMEL-5365) SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios

Posted by "Aki Yoshida (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/CAMEL-5365?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Aki Yoshida updated CAMEL-5365:
-------------------------------

    Attachment: trunk-camel-cxf-patch.diff
    
> SOAPMessage to InputStream conversion needed for some CXF SOAPMessage Provider scenarios
> ----------------------------------------------------------------------------------------
>
>                 Key: CAMEL-5365
>                 URL: https://issues.apache.org/jira/browse/CAMEL-5365
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>    Affects Versions: 2.9.2
>            Reporter: Aki Yoshida
>            Priority: Minor
>         Attachments: trunk-camel-cxf-patch.diff
>
>
> 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.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira