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

Andreas Kuhtz reopened CXF-3744:
--------------------------------


One problem still exists. 
If the transformFeature is enabled (applicationContext.xml: line 67) and the 
Test transformedCallTest is executed, the following output is traced (note the 
payload! ... and the missing Encoding):

{code}
12:55:25.030 INFO  
[qtp19725666-15][org.apache.cxf.interceptor.LoggingOutInterceptor] - Outbound 
Message
---------------------------
ID: 2
Content-Type: text/xml
Headers: {}
Payload: <TransformTestResponse xmlns="http://cxf.apache.org/transform/test"; 
xmlns:ns2="http://cxf.apache.org/transform/header"; 
xmlns:ns3="http://cxf.apache.org/transform/header/element"; 
xmlns:ns4="http://cxf.apache.org/transform/fault";><Status>LOOPBACK</Status></TransformTestResponse>
--------------------------------------
{code}

whereas the following is logged if the feature is disabled:

{code}
13:01:32.381 INFO  
[qtp19725666-14][org.apache.cxf.interceptor.LoggingOutInterceptor] - Outbound 
Message
---------------------------
ID: 2
Encoding: UTF-8
Content-Type: text/xml
Headers: {}
Payload: <?xml version='1.0' encoding='UTF-8'?><soap:Envelope 
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/";><soap:Header><ns2:SoapHeaderOut
 xmlns:ns4="http://cxf.apache.org/transform/fault"; 
xmlns:ns3="http://cxf.apache.org/transform/header/element"; 
xmlns:ns2="http://cxf.apache.org/transform/header"; 
xmlns="http://cxf.apache.org/transform/test";><ns2:OperationalMode>SIMULATION1</ns2:OperationalMode><ns2:SomeCorrelationId>test-123</ns2:SomeCorrelationId></ns2:SoapHeaderOut></soap:Header><soap:Body><TransformTestResponse
 xmlns:ns4="http://cxf.apache.org/transform/fault"; 
xmlns:ns3="http://cxf.apache.org/transform/header/element"; 
xmlns:ns2="http://cxf.apache.org/transform/header"; 
xmlns="http://cxf.apache.org/transform/test";><Status>LOOPBACK</Status></TransformTestResponse></soap:Body></soap:Envelope>
--------------------------------------
{code}

Unfortunately I don't know how to track this in a unit testcase.

> LoggingOutInterceptor shows wrong or no payload if StaxTransformFeature is 
> active
> ---------------------------------------------------------------------------------
>
>                 Key: CXF-3744
>                 URL: https://issues.apache.org/jira/browse/CXF-3744
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 2.4.2
>            Reporter: Andreas Kuhtz
>            Assignee: Aki Yoshida
>             Fix For: 2.4.3, 2.5
>
>
> If the transform feature is configured the SoapMessage is not logged correct. 
> In case of a SoapFault no payload is logged. If a valid response is logged 
> only the content of the SoapBody is logged but not the whole Envelope.
> The corresponding thread in the mailing list: 
> http://cxf.547215.n5.nabble.com/LoggingOutInterceptor-shows-wrong-or-no-payload-if-StaxTransformFeature-is-active-td4678061.html

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to