[ 
https://issues.apache.org/jira/browse/CAMEL-8410?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stephan Siano updated CAMEL-8410:
---------------------------------
    Attachment: 0001-CAMEL-8410-Add-stream-caching-for-CxfPayload.patch

The intial patch had the issue that namespaces could get lost in the following 
case:
1. A CXFPayload was received in PAYLOAD mode that contained namespaces that 
were defined on the SOAP envelope but used in the SOAP payload itself, and the 
Source contained within the CXF Message was not a DOMSource
2. The payload was converted to some other data type (e.g. String)

In this case the payload would contain namespace prefixes that were not defined 
(there is a workaround for access via DOM trees in a way that the namespaces 
are set to the root node.

The modified patch uses a delegating XMLStreamReader that also returns the 
namespaces stored in the nsmap of the CXFPayload (these are the namespaces in 
question) to the consumer if the Source is some kind of StAXSource and converts 
to DOM (as before) in other cases.

> Add stream caching for CxfPayload
> ---------------------------------
>
>                 Key: CAMEL-8410
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8410
>             Project: Camel
>          Issue Type: Improvement
>          Components: camel-cxf
>            Reporter: Stephan Siano
>         Attachments: 0001-CAMEL-8410-Add-stream-caching-for-CxfPayload.patch
>
>
> The provided patch adds StreamCache support for CxfPayload objects.
> It also removes the side effects of the type converters for CxfPayload. As a 
> consequence CxfPayload objects may be read only once if stream caching is 
> disabled.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to