Webservice-SOAP报文抓取与分析
上一篇 /
下一篇 2020-07-03 10:09:17
SOAP(simple object access protocol),简单对象访问协议,是webservice的传输报文结构。
二、IDEA抓取SOAP报文
1. IDEA下载插件
2. 配置Tunnellij,Tunnellij是一个类似于Eclipse的TCP/IP Monitor的插件,比较流行。
3. 启动
server端,启动client端,在Tunnellij界面可以抓到报文
4.分析SOAP报文结构
请求报文:xmlns:ns2为命名空间
arg0,agr1为sayHello的方法参数,如果希望更改名称,可以在server端的请求参数使用
@WebParam(name = "xxx") <soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <ns2:sayHello xmlns:ns2="http://service.example.com/"> <arg0>Leo</arg0> <arg1>31</arg1> </ns2:sayHello> </soap:Body> </soap:Envelope> |
收藏
举报
TAG:
soap