我有一段服务调用代码,我想打印响应SOAP消息。我正在使用使用apache轴生成的存根。我怎么能这样做?
service = new RateServiceLocator();
updateEndPoint(service);
port = service.getRateServicePort();
// This is the call to the web service passing in a RateRequest and
// returning a RateReply
RateReply reply = port.getRates(request); // Service call
谢谢
答案 0 :(得分:0)
我创建了自己的日志处理程序,并配置AXIS(通过wsdd文件)在每个传入的请求/传出响应上调用它。
请查看下一个链接:
How can I log with Log4J SOAP request and response in AXIS 1.x?