[ 
https://issues.apache.org/jira/browse/CXF-8257?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17149423#comment-17149423
 ] 

Tomasz Zorawik commented on CXF-8257:
-------------------------------------

Thanks for the reply! On short notice I prepared only sample WSDL and SOAP 
request which is not being logged. Please let me know if this is enough to 
reproduce the problem. If not I will try to prepare a whole project.

WSDL:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wsdl:definitions xmlns:soap="http://schemas.xmlsoap.org/wsdl/soap/";
xmlns:tns="http://example.com/Example/";
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/";
xmlns:xsd="http://www.w3.org/2001/XMLSchema"; name="Example"
targetNamespace="http://example.com/Example/";>

<wsdl:message name="Operation1Request"> 
 <wsdl:part name="a" type="xsd:int"/>
 </wsdl:message>
 
 <wsdl:message name="Operation1Response" />

<wsdl:portType name="ExamplePortType">
 <wsdl:operation name="Operation1">
 <wsdl:input message="tns:Operation1Request"/>
 <wsdl:output message="tns:Operation1Response"/>
 </wsdl:operation>
 </wsdl:portType>

<wsdl:binding name="ExampleBinding" type="tns:ExamplePortType">
 <soap:binding style="rpc"
transport="http://schemas.xmlsoap.org/soap/http"; />
 <wsdl:operation name="Operation1">
 <soap:operation
soapAction="http://example.com/Example/Operation1"; />
 <wsdl:input>
 <soap:body use="literal"
namespace="http://example.com/Example/"; />
 </wsdl:input>
 <wsdl:output>
 <soap:body use="literal"
namespace="http://example.com/Example/"; />
 </wsdl:output>
 </wsdl:operation>
 </wsdl:binding>

<wsdl:service name="ExampleService">
 <wsdl:port binding="tns:ExampleBinding" name="ExamplePort">
 <soap:address location="http://www.example.org/"/>
 </wsdl:port>
 </wsdl:service>
</wsdl:definitions>

 

SOAP request body:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"; 
xmlns:exam="http://example.com/Example/";>
 <soapenv:Header/>
 <soapenv:Body>
 <exam:Operation1>
 <a>Deliberatly sending string instead of number.</a>
 </exam:Operation1>
 </soapenv:Body>
</soapenv:Envelope>

> Logger no longer logs bad requests
> ----------------------------------
>
>                 Key: CXF-8257
>                 URL: https://issues.apache.org/jira/browse/CXF-8257
>             Project: CXF
>          Issue Type: Bug
>          Components: logging
>    Affects Versions: 3.3.6
>            Reporter: Tomasz Zorawik
>            Priority: Major
>
> After update to CXF 3.3.6 I noticed that LoggingInInterceptor 
> (LoggingFeature) no longer logs bad requests. This happens for instance when 
> incorrect operation name is sent in SOAP request body. Previously in such 
> case handleFault(Message) from LoggingInFaultInterceptor was called. It seems 
> that this change happened between 3.3.2 and 3.3.3 where 
> LoggingInFaultInterceptor was deleted.
> Is there a new way of logging such requests?
> This issue may be connected with CXF-7518, CXF-7562 and CXF-8072  where 
> LoggingInFaultInterceptor was deleted and added back and forth.
>  
>  



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

Reply via email to