1. 程式人生 > >SoapUI測試WebService接口

SoapUI測試WebService接口

name ini PE navig ons rst tar currency ast

技術分享圖片

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:

技術分享圖片

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:

技術分享圖片

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地址。

技術分享圖片

如果一個接口的訪問是要依賴於登錄之後才能訪問的,SoapUI也是支持的!

SoapUI測試WebService接口