soapUI测试webservice改为jmeter测试webservice

WSDL :  Web Services Description Language 网络服务描述语言是Web Service的描述语言

SOAP :  Simple Object Access Protocol  简单对象访问协议

一、准备soapui5.2.1,准备jmeter3.1(3.2以上删除了soap协议)

下载地址:https://pan.baidu.com/s/1smsAARz

二、Webservice常用接口 公网公开的

  http://blog.csdn.net/jingqia/article/details/17398673

Webservice常用接口

天气预报Web服务,数据来源于中国气象局
Endpoint :http://www.webxml.com.cn/WebServices/WeatherWebService.asmx
Disco      :http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?disco
WSDL      :http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl

中国股票行情分时走势预览缩略图 WEB 服务
Endpoint : http://www.webxml.com.cn/webservices/ChinaStockSmallImageWS.asmx
Disco       :http://www.webxml.com.cn/webservices/ChinaStockSmallImageWS.asmx?disco
WSDL      : http://www.webxml.com.cn/webservices/ChinaStockSmallImageWS.asmx?wsdl

身份证信息免费查询WEB服务
http://www.gpsso.com/webservice/idcard/idcard.asmx

手机IMEI查询
http://www.gpsso.com/WebService/Phone/Phone.asmx

腾讯QQ在线状态 WEB 服务
Endpoint :http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx
Disco        :http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?disco
WSDL      :http://www.webxml.com.cn/webservices/qqOnlineWebService.asmx?wsdl

三、soapUI测试方法

soap1.1、 1.2的区别:   http://blog.csdn.net/yuquan0405/article/details/47150393

 1)新建一个soapui project

2)输入?wsdl结尾的地址(

3 )双击request 输入参数,左边是请求,右边是返回值

soap1.1

soap1.2

 

 四、jmeter3.1接口测试方法

1)添加sampler  >>SOAP/XML RPC request

2)添加HTTP信息头管理器

Content-Type:application/soap+xml;charset=UTF-8;action="http://WebXml.com.cn/qqCheckOnline" 

或者添加Content-Type:application/soap+xml;charset=UTF-8,将action添加到send SOAPAction:里

 

 

3)添加url 和SOAP/XML RPC Data ,数据从SOAPUI工具中取。

url 研发给你的地址将  ?wsdl去掉就是

Data研发也会给你,不给的话就用soapui自己会取到参数。

 4)结果如下

 

posted @ 2018-02-06 16:44  白灰  阅读(792)  评论(0)    收藏  举报