Site icon Tutorial

Web Services

Learn Web Services

Let us learn about Web Services.

A Web Service is a service available on a network, that will allow other systems to communicate with it, using a defined protocol. The Web part indicates that the service is using transport protocols designed for the World Wide Web, i.e., it uses HTTP to communicate. Other systems can be Web applications, apps in phones and similar.

APIs come in two main flavours, SOAP and REST. Generally, APIs and Web Services, the two terms have different connotations. However, they technically define the same thing.

“Web Service” is generally used when discussing SOAP-based services. However, API is used in a broader sense, encompassing SOAP, REST, and the rest of the API protocols. Therefore, we simply use the abbreviation API to refer to the service henceforth.

Web Services Components

Important components of the web services. They are,

WSDL (Web Services Description Language) – A WSDL is a document that should be written using XML. This document describes the following details about the web service:

A sample WSDL file

Above all, the role of WSDL is validating web services. This is further done with the help of  SoapUI. Moreover, this is only possible with the WSDL document because it configures web services in SoapUI, WSDL. However, if the WSDL document is not valid, SoapUI will throw an exception immediately.

UDDI (Universal Description, Discovery and Integration) – This is a global repository where we can search the web services spread over the globe. Moreover, this is the place where the WSDL is described in detail. In addition, this will communicate through the SOAP protocol which will be explored later in this tutorial.

SOAP (Simple Access Object Protocol) – Generally, it uses XML based data to interact with web applications.

A sample SOAP document

As you can see, a SOAP document must contain the following elements:

RDF

RDF (Resource Description Framework) – RDF contains the description of web resources such as title, author, content, and copyright information. This framework was designed so that computers can be read and understood easily by the web. RDF is completely written by using XML language.

RDF data can be transferred between different types of computers using different operating systems and programming languages. Generally, RDF uses Uniform Resource Identifiers (URIs) on the web and it describes the resources along with the property and property values.

A  sample RDF document

<? xml version=”1.0″?>

<RDF>

<Description about=”https://www.softwaretestinghelp.com/rdf”>

<author> Wilfred R. Myers </author>

<homepage>http://www. softwaretestinghelp.com</homepage>

</Description>

</RDF>

Make your resume stand out and become a Certified SoapUI Testing Professional. Try free practice tests here!

A great career is just a certification away. So, practice and validate your skills to become Certified SoapUI Testing Professional

Exit mobile version