Webservice-SOAP报文抓取与分析

上一篇 / 下一篇  2020-07-03 10:09:17

  一、什么是SOAP
  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

 

评分:0

我来说两句

日历

« 2024-03-28  
     12
3456789
10111213141516
17181920212223
24252627282930
31      

数据统计

  • 访问量: 53710
  • 日志数: 43
  • 建立时间: 2019-02-12
  • 更新时间: 2020-08-10

RSS订阅

Open Toolbar