通过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

相关文章

1.使用ajax调用varxhr;functioninvoke(){if(window.ActiveXO...
               好不容易把WebService服务器...
1新建一个工程项目用来做服务端增加一个MyService1类文件pac...
packagecom.transsion.util;importjava.io.BufferedReader;i...
再生产wsdl文件时重写描述文件1usingSystem;2usingSystem.Co...
一般情况下,使用eclipse自带的jax-ws生成webservice会自动生...