gpt4 book ai didi

java - 如何打印 axis2 服务 SOAP 信封

转载 作者:行者123 更新时间:2023-11-30 03:51:49 27 4
gpt4 key购买 nike

我正在使用 axis2 客户端调用一个 WebService,因为我使用 OMElement 添加了 header 。执行时我遇到异常。我只想打印并检查请求的整个 SoapEnvelope

请建议我如何打印请求的 SoapEnvelope

提前致谢。

最佳答案

可以在eclipse中使用tcp/ip监控

例如,如果您的端点是http://localhost:8080/Pojo/services/AddressBookService

在 Eclipse 中导航至 Window --> Preferences --> TCP/IP Monitor单击添加添加本地监控端口并提供您的端点服务器主机和端口号勾选自动启动选项并点击确定

enter image description here

在 Eclipse 中,导航到窗口 --> 显示 View --> tcp/ip

enter image description here

接下来,您需要将端点指向 TCP 监视器正在监听的新端口

http://localhost:10080/Pojo/services/AddressBookService

调用服务后,您可以查看 SOAP 请求和响应。如果您有标题内容,您也可以查看。

enter image description here

关于java - 如何打印 axis2 服务 SOAP 信封,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/24238804/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com