wireshark配合jmeter测试webservice接口
1.首先,获取本地和接口的ip,以便设置过滤
2.wireshark设置过滤
ip.dst==192.168.0.101 and ip.src==61.147.124.120 and http
3.执行py文件并捕获请求
捕捉到的soap请求
复制soap请求
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:Body>
<getMobileCodeInfoResponse xmlns="http://WebXml.com.cn/">
<getMobileCodeInfoResult>13888888888</getMobileCodeInfoResult>
</getMobileCodeInfoResponse>
</soap:Body>
</soap:Envelope>
另外,也可通过firbug查看ip
<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope
xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<soap:operation soapAction="http://WebXml.com.cn/getMobileCodeInfo" style="document"/>
<soap:Body>
<getMobileCodeInfoResponse xmlns="http://WebXml.com.cn/">
<getMobileCodeInfoResult>13888888888</getMobileCodeInfoResult>
</getMobileCodeInfoResponse>
</soap:Body>
</soap:Envelope>
4.jmeter中添加http信息头、soap请求、断言、查看结果树
最新文章
- MyBatis学习总结(五)——实现关联表查询(转载)
- iOS.Performance-trick-presentViewController-is-so-slow-in-didSelectRowAtIndexPath
- OGNL和ValueStack
- C/C++中NULL的涵义
- BZOJ 1922: [Sdoi2010]大陆争霸
- 安装vim
- 【Office Word】论文排版有关技巧
- jquery上传图片插件plupload
- CSS3选择器(一)
- HDU 5056 Boring Count --统计
- powerdesigner中将表的name在生成建表sql时生成注释
- java基础学习总结六(对象与类、类的属性与方法)
- 使用QEMU调试Linux内核代码
- 基于AFNetworking 3.0的取消已发出的网络请求
- 可视化接口管理工具RAP,模拟数据,校验接口
- 可以设置超时版的的fetch
- Java DES 加解密(";DES/EBC/NoPadding";)
- vue常用
- 路由器配置及IP设置及ping命令使用
- IOS-网络(ASI使用)