camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akitoshi Yoshida (JIRA)" <>
Subject [jira] [Resolved] (CAMEL-8663) Namespaces defined on the SOAP envelope get lost in PAYLOAD mode
Date Wed, 05 Aug 2015 16:02:05 GMT


Akitoshi Yoshida resolved CAMEL-8663.
       Resolution: Fixed
    Fix Version/s: 2.16.0

For now, the patch is only pushed to master/2.16.0.

This patch does not integrate automatically into 2.15.x, as its change depends on the change
made with CAMEL-8410 and CAMEL-8688.

That means, if this patch needs to be integrated into 2.15.x, either bring these previous
changes into 2.15.x or adjust this patch to work without these change.

> Namespaces defined on the SOAP envelope get lost in PAYLOAD mode
> ----------------------------------------------------------------
>                 Key: CAMEL-8663
>                 URL:
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxf
>            Reporter: Stephan Siano
>            Assignee: Akitoshi Yoshida
>             Fix For: 2.16.0
>         Attachments: 0001-CAMEL-8663-Namespaces-defined-on-SOAP-envelope-lost-.patch,
> If a request message is send to a CXF consumer or a response is returned to the CXF provider
that contains namespace definions at the SOAP envelope and the Camel-CXF endpoint is configured
in PAYLOAD mode the namespace definition gets lost unless streaming is disabled.
> If the resulting CxfPayload is then converted e.g. to String that String will contain
invalid XML (because some namespace definition is missing).
> For non-streaming mode (system property org.apache.camel.component.cxf.streaming is set
to false) there are special precautions met to set these envelope namespaces on the first
DOM element of the payload but this coding is missing for StAX.
> The messages in question look like that:
> <soap:Envelope xmlns:soap="" xmlns:xsi=""
>   <soap:Body>
>     <ns2:getTokenResponse xmlns:ns2="">
>       <return xsi:type="xs:string">Return Value</return>
>     </ns2:getTokenResponse>
>   </soap:Body>
> </soap:Envelope>
> If the CxfPayload is converted to String it will lack the definition for the xsi namespace
prefix (and further XML parsing will fail).

This message was sent by Atlassian JIRA

View raw message