我需要捕获完整的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