Java使用JAX-WS跟踪XML请求响应

Java使用JAX-WS跟踪XML请求响应,第1张

Java使用JAX-WS跟踪XML请求/响应

使用以下选项可以记录到控制台的所有通信(从技术上讲,你仅需要其中之一,但这取决于你使用的库,因此设置所有这四个为更安全的选项)。你可以像示例中那样在代码中进行设置,也可以使用-D作为命令行参数进行设置,或者如Upendra所编写的那样作为环境变量进行设置。

System.setProperty("com.sun.xml.ws.transport.http.client.HttpTransportPipe.dump", "true");System.setProperty("com.sun.xml.internal.ws.transport.http.client.HttpTransportPipe.dump", "true");System.setProperty("com.sun.xml.ws.transport.http.HttpAdapter.dump", "true");System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dump", "true");System.setProperty("com.sun.xml.internal.ws.transport.http.HttpAdapter.dumpTreshold", "999999");


欢迎分享,转载请注明来源:内存溢出

原文地址: https://outofmemory.cn/zaji/5004215.html

(0)
打赏 微信扫一扫 微信扫一扫 支付宝扫一扫 支付宝扫一扫
上一篇 2022-11-14
下一篇 2022-11-14

发表评论

登录后才能评论

评论列表(0条)

保存