Anda di halaman 1dari 14

9/7/15

Introduction to Web
Services and Soap UI

Presented By:Prabhat Ray


1

Agenda
What is Web Service.
What are different component of Web Services.
About Soap UI.
System Requirements.
Web services testing tools.
Write your first test case in soap UI.

What is web services.


Web servicesare client and server applications
that communicate over the World
WideWeb's(WWW) Hyper Text Transfer Protocol
(HTTP).
Example of Web Services
Weather Reporting: Suppose we want to display the weather

information in our website then we can do that using a weather


reporting Web Service.
Stock Quote: We can display the latest update of the shares market

with a stock quote on our web-site.


News-Headline: If we want to display the latest news updates in our

web-site then we can do this using a News-headline Web Service.


Currency conversion: By consuminga live currency conversion Web

Service, we can convert various currency rates in our application.


3

Different Component of Web Services.


XML (ExtensibleMarkupLanguage).
SOAP (Simple Object Access Protocol)
or
REST (Representational State Transfer)
WSDL (Web Service Description Language).
UDDI (Universal Description Discovery and
Integration).

What is SOAP.
Soap Message Structure.
Soap Envelope.
Soap Header
Soap Body
Soap Fault
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
xmlns:web="http://www.webserviceX.NET/">
<soapenv:Header/>
<soapenv:Body>
<web:ConversionRate>
<web:FromCurrency>INR</web:FromCurrency>
<web:ToCurrency>USD</web:ToCurrency>
</web:ConversionRate>
</soapenv:Body>
</soapenv:Envelope>

What is WSDL.
A WSDL document describes a web service using these major
elements:
types :- A container for data type definitions used by the web
service
Message :- A typed definition of the data being communicated
portType :- A set of operations supported by one or more endpoints
Binding :- A protocol and data format specification for a particular
port A WSDL document can also contain other elements, like
extension elements, and a service element that makes it possible to
group together the definitions of several web services in one single
WSDL document.
6

What is WSDL.
The main structure of a WSDL document looks like this:
<definitions>
<types>
data type definitions........
</types>
<message>
definition of the data being communicated....
</message>
<portType>
set of operations......
</portType>
<binding>
protocol and data format specification....
</binding>
</definitions>

What is UDDI
Universal Description, Discovery and Integration
(UDDI) is a directory service where businesses can
register and search for Web services.
How can UDDI be Used
If the industry published an UDDI standard for flight
rate checking and reservation, airlines could register
their services into an UDDI directory. Travel agencies
could then search the UDDI directory to find the
airline's reservation interface. When the interface is
found, the travel agency can communicate with the
service immediately because it uses a well-defined
reservation interface.
8

About Soap UI.


Free and Open Source functional testing tool from
Smart Bear.
Easy to use graphical interface.
Create and use automated
functional test cases.
Regression test cases.
Load testing Using Load UI.
Security Testing.

System Requirement.
Windows
1GHz or higher 32-bit or 64-bit processor
512MB of RAM
200MB of hard disk space for installation (SoapUI
and HermesJMS)
Windows XP or later

10

Web Services Testing Tools.


Soap UI.
TestMaker.
WebInject.
Web Service Call Composer From Stylus Studio.
We can also verify request and response through
Firefox add on name Poster.

11

References & Resources


SOAP. (http://www.w3.org/TR/SOAP/)
UDDI. (http://www.uddi.org)
WSDL. (http://
msdn.microsoft.com/xml/general/wsdl.asp)
Soap UI. (www.soapui.org)
TestMaker. (
http://www.pushtotest.com/products.html)
WebInject.(www.webinject.org)
Web Service Call Composer From Stylus Studio.
(http://www.stylusstudio.com/ws_tester.html)
http://www.webservicex.net/medicareSupplier.a
smx?WSDL
12

For Your Information.


You can fill your Income tax return using below web
service.
https://incometaxindiaefiling.gov.in/e-FilingWS/ditws/submitITR.
wsdl

Free Web Services List for Testing.


http://www.webservicex.net/ws/default.aspx
https://
www.usaepay.com/soap/gate/74A32B17/usaepay.wsdl
13

Thank you

Prabhat Ray
Prabhat.ray@orderdynamics.com

14