SoapUI测试WebService接口


 

 

 

Getting Started

Getting started with some ad-hoc testing of a SOAP service is straight forward; select the “New Project” option from the File menu, which will prompt the following dialog:

new-wsdl-project

Paste the WSDL path http://www.webservicex.com/CurrencyConvertor.asmx?wsdl into the Initial WSDL/WADL field (the Project Name will be extracted from this) and press OK. SoapUI will work a bit and create the project with the imported WSDL available in the navigator. Go straight to the first “Request 1” request generated for the Conversion Rate operation and double-click it, which opens the following window:

wsdl-request-gettingstarted

Now all you have to do is enter the codes for the desired currencies and press the green arrow on the top left to submit the request to the target service, which will return a nice response for you:

wsdl-request-gettingsstarted-2

 

可以右键项目增加WSDL地址。

 

如果一个接口的访问是要依赖于登录之后才能访问的,SoapUI也是支持的!


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM