[
https://issues.apache.org/jira/browse/CXF-7999?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16796224#comment-16796224
]
Colm O hEigeartaigh commented on CXF-7999:
------------------------------------------
The text "Outbound Message" doesn't appear anymore. Instead the message looks
something like:
INFO: REQ_OUT
Address: https://localhost:13501/DoubleItUTPlaintext
HttpMethod: POST
Content-Type: text/xml
ExchangeId: 38943cbd-26cf-4366-8ea9-eaf81c8adb07
ServiceName: DoubleItService
PortName: DoubleItPlaintextPort
PortTypeName: DoubleItPortType
Headers: \{SOAPAction="", Accept=*/*}
Payload: <soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"><soap:Header><wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd"
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"
soap:mustUnderstand="1"><wsu:Timestamp
wsu:Id="TS-ccf588cd-e118-400b-ae96-a0281dcbeaf0"><wsu:Created>2019-03-19T16:00:18.570Z</wsu:Created><wsu:Expires>2019-03-19T16:05:18.570Z</wsu:Expires></wsu:Timestamp><wsse:UsernameToken
wsu:Id="UsernameToken-e7981e94-d524-4c00-b953-54b785b96ac4"><wsse:Username>Alice</wsse:Username><wsse:Password
Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">ecilA</wsse:Password></wsse:UsernameToken></wsse:Security></soap:Header><soap:Body><ns2:DoubleIt
xmlns:ns2="http://www.example.org/schema/DoubleIt"><numberToDouble>25</numberToDouble></ns2:DoubleIt></soap:Body></soap:Envelope>
> LoggingFeature documentation example invalid
> --------------------------------------------
>
> Key: CXF-7999
> URL: https://issues.apache.org/jira/browse/CXF-7999
> Project: CXF
> Issue Type: Bug
> Components: Documentation, JAX-WS Runtime
> Affects Versions: 3.1
> Environment: Centos 7.5, Fuse 7, (cxf 3.1.11), and slf/log4j2.
>
>
> Reporter: Daniel Brownell
> Priority: Major
>
>
> Upgraded logging interceptors, as started using CXF 3.1, to use the
> "features":
> |{{<}}{{jaxws:endpoint}} {{...>}}
> {{ }}{{<}}{{jaxws:features}}{{>}}
> {{ }}{{<}}{{bean}}
> {{class}}{{=}}{{"org.apache.cxf.ext.logging.LoggingFeature"}}{{/>}}
> {{ }}{{</}}{{jaxws:features}}{{>}}
> {{</}}{{jaxws:endpoint}}{{>}}|
> as per [http://cxf.apache.org/docs/message-logging.html]
>
> This didn't work. "Outbound Message" and "Inbound Message" logs no longer
> appear.
>
> I added the dependency containing the "ext" version in my pom.xml:
> *<dependency>*
> *<groupId>org.apache.cxf</groupId>*
> *<artifactId>cxf-rt-features-logging</artifactId>*
> *</dependency>*
>
> Another user seems to have the same problem on SO:
> [https://stackoverflow.com/questions/55050636/apache-cxf-3-2-7-loggingfeature-configuration]
> Another user had a similar problem:
> [https://stackoverflow.com/questions/54989929/apache-cxf-loggingininterceptor-is-deprecated-what-to-use-instead]
> Answer suggested the user still make use of the interceptors, but in the new
> package: org.apache.cxf.ext.logging.LoggingInInterceptor - but adding that
> didn't help either.
>
> {{<jaxws:client id="AuthRequest" serviceClass="com.PortType" address="${url}"
> username="${userName}" password="${password}">}}
> {{ <jaxws:features>}}
> {{ <bean id="loggingFeature"
> class="org.apache.cxf.ext.logging.LoggingFeature">}}
> {{ <property name="prettyLogging" value="true" />}}
> {{ </bean>}}
> {{ </jaxws:features>}}
> {{ <jaxws:inInterceptors>}}
> {{ <bean id="loggingInInterceptor"
> class="org.apache.cxf.ext.logging.LoggingInInterceptor">}}
> {{ <property name="prettyLogging" value="true" />}}
> {{ </bean>}}
> {{ </jaxws:inInterceptors>}}
> {{ <jaxws:outInterceptors>}}
> {{ <bean id="loggingOutInterceptor"
> class="org.apache.cxf.ext.logging.LoggingOutInterceptor">}}
> {{ <property name="prettyLogging" value="true" />}}
> {{ </bean>}}
> {{ </jaxws:outInterceptors>}}
> {{</jaxws:client>}}
>
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)