如何使用Spring-ws 2.0捕获SOAP数据包

时间:2015-01-20 22:24:11

标签: soap spring-ws

我需要捕获完整的soap请求数据包并将其保存到database.I确实尝试使用SoapEnvelopeLoggingInterceptor但没有运气......

Myinterceptor

private static final org.slf4j.Logger logger = LoggerFactory.getLogger(some.class);

@Override
    protected void logMessage(String message) {
    System.err.println(message);
    System.out.println("Calling Interceptor");
    logger.debug(message);
    /* Example, here you could be logging to DB or whatever you want */
}

}

myendpoint代码看起来像这样

  public @ResponsePayload SaveClientResponse saveClientRequest(@RequestPayload GetClientServiceRequest request,MessageContext ctx){

} 如何在端点中获取SOAP请求数据包?

我的春季配置


     enter code here
   

0 个答案:

没有答案