首页 > Web开发 > 详细

通过jmeter发送webservice接口请求

时间:2019-08-06 19:05:33      阅读:102      评论:0      收藏:0      [点我收藏+]

 

1.webservice接口地址:http://ip:port/...?wsdl  

2.接口数据类型:<cuxGmiChukuRmaTrxV><salesrepId xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:nil="">1065088</salesrepId>......</cuxGmiChukuRmaTrxV>

3.通过webservice接口发送请求

  1.使用SoapUI获取webservice接口请求格式

  创建soap请求

技术分享图片

  输入名称及webservice接口地址

技术分享图片

  获取webservice接口请求格式,<billContents>?</billContents>中?用(<![CDATA[<?xml version="1.0" encoding="UTF-8"?>请求数据)代替

技术分享图片

  请求头类型

技术分享图片

2.使用jmeter发送webservice接口请求

  jmeter3.2以前版本有soap请求,之后取消了soap请求,通过http请求代替
  添加请求头  

技术分享图片

  添加http请求

技术分享图片

  请求参数格式

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:web="http://webservice.doublecrane.seller.medicine.xforceplus.com/">
<soapenv:Header/>
<soapenv:Body>
<web:pushBill>
<!--Optional:-->
<billContents><![CDATA[<?xml version="1.0" encoding="UTF-8"?>填写请求参数</billContents>
</web:pushBill>
</soapenv:Body>
</soapenv:Envelope>

 技术分享图片

 

点击发送就可以看到结果了

 

有不对的多多指教,接口、性能、自动化略有涉及

欢迎交流,QQ:823091235

通过jmeter发送webservice接口请求

原文:https://www.cnblogs.com/cty136/p/11311047.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!