【问题标题】:How to put SOAP request and SOAP response in Log file in @EndPoint annotated class file如何将 SOAP 请求和 SOAP 响应放入 @EndPoint 注释类文件的日志文件中
【发布时间】:2012-03-12 16:09:15
【问题描述】:

我正在使用这个 bean 代码将请求和响应记录到日志文件中

<bean
class="org.springframework.ws.soap.server.endpoint.interceptor.SoapEnvelopeLoggingInterceptor">
   <property name="logRequest" value="true" />
   <property name="logResponse" value="true" />
</bean>

这在 TOMCAT 应用程序服务器中可以正常工作,用于在进入和离开 @EndPoint 类时记录 SOAP 请求和 SOAP 响应,但在 WebSphere Application Server V8.0 的情况下则不然。是否有任何其他方法可以将 SOAP 请求和 SOAP 响应放入 SPRING-WS 中的日志文件。

【问题讨论】:

    标签: web-services spring tomcat soap websphere


    【解决方案1】:

    还有其他方法。请参阅documentation

    无论如何,为什么SoapEnvelopeLoggingInterceptor 不能与 WebSphere 一起工作?我没有使用 WebSphere 的经验,但是您的日志配置可能会被服务器覆盖。查看服务器日志配置。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2023-01-09
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多