Introduction to testing Web Service using SOAPUI

Source: Internet
Author: User
Tags soapui wsdl

1. Introduction

SOAPUI is a tool for testing Web service developed in Java.

2. Installation

2.1.

http://www.soapui.org/

2.2. Installation

By downloading and installing SoapUI using the Windows Installer from SourceForge SoapUI Web Site, which includes the requ ired 1.6 JRE (Java Runtime environment). Use the installer if is unsure about your systems Java installation or if you want startup menu icons and an uninstal Ler.

1.6 JRE Environment
Double-click the installation to use it.

2.3. Instructions for use

Http://www.soapui.org/userguide/index.html

3. Start testing

3.1. Preparation

SOAPUI has been installed successfully
Knowing the address of the service to be tested, here is an example of the EBI Wsdbfetch WSDL address:
http://www.ebi.ac.uk/Tools/webservices/wsdl/WSDbfetch.wsdl

3.2. Start the program

Soapui-25-beta2

3.3. New plan
File->new SoapUI Project

New plan

After OK, review the services provided by the Web service.

Service list for Web service

3.4 Example 1 Getsupporteddbs (no edit request required)

Double-click the Request1, display the request screen, click the Green Submit button, submit the request, and return the result on the right side, the request and the result are in XML format.

3.5 Example 2 Fetchbatch (edit request)

The requested page has a question mark where you need to edit it, just as you would choose the database input query results when querying.

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>

Submit return Results

return results

Introduction to testing Web Service using SOAPUI

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.