문제

I wanted to log with log4j the SOAP messages generated by a jax-ws client spring bean.

This is the jax-ws client bean:

<jaxws:client id="soapClient"  serviceClass="${serviceClass}" address="${service.url}"/>
도움이 되었습니까?

해결책

Just define the bean as follows:

<jaxws:client id="soapClient" 
    serviceClass="${serviceClass}"
    address="${serviceUrl}">
    <jaxws:outInterceptors>
        <ref bean="loggingOutInterceptor"/>
    </jaxws:outInterceptors>
</jaxws:client>
<bean id="loggingOutInterceptor" class="org.apache.cxf.interceptor.LoggingOutInterceptor" />
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top