3.4. 示例1 getSupportedDBs(不需要编辑请求)
双击Request1,显示Request界面,点击绿色的提交按钮,就会递交请求,同时会在右侧返回结果,请求与结果都为XML格式。
3.5. 示例2 fetchBatch(编辑请求)
请求的页面有问号的地方,都是需要你编辑,如同查询时你选择数据库输入查询结果一样。
fetchBatch
<soapenv:Body> <wsd:fetchBatch soapenv:encodingStyle=”http://schemas.xmlsoap.org/soap/encoding/“> <db xsi:type=”xsd:string”>uniprotkb</db> <ids xsi:type=”xsd:string”>WAP_MOUSE,WAP_RAT</ids> <format xsi:type=”xsd:string”>default</format> <style xsi:type=”xsd:string”>default</style> </wsd:fetchBatch> </soapenv:Body> |
提交返回结果
返回结果
4. 说明
本文只是对SoapUI 做了简单的介绍,主要用其来查看web service提供的接口,以及返回的结果,以便进一步的利用,但是SoapUI的功能远不止这些,其可以对web service进行功能上和性能上的测试。
相关阅读: