微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

通过jmeter发送webservice接口请求

 

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

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 [email protected] 举报,一经查实,本站将立刻删除。

相关推荐