0% found this document useful (0 votes)
35 views5 pages

Chandini WebServicesPPT

Uploaded by

chandinisri0423
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views5 pages

Chandini WebServicesPPT

Uploaded by

chandinisri0423
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PPTX, PDF, TXT or read online on Scribd
You are on page 1/ 5

SOAP/REST Webservices

Chandini Sri
Intern
March, 2023
1 © Hitachi Vantara LLC 2023. All Rights
Reserved.
Web Services
• Small pieces of code that provides a proper functionality is an API. When these
aPIs are hosted web are called as web services.
• Webservice enables communication among various applications by using open
standards such as XML, WSDL, and SOAP.

• Web Services have 2 types of uses:


• Reusable application components like currency conversion, weather
reports or even language translation as services.
• Connect existing software with web services you can exchange data
between different applications and different platforms.

SOAP web Services


• SOAP – Simple Object Access Protocol.
• SOAP message is captured WSDL and it uses XML format for communication.
• We have different and certain set of operations like add, delete,… .
• SOAP can be established on any platform which is HTML based.
• A SOAP message is an ordinary XML document containing the following
elements :
• An Envelope element that identifies the XML document as a SOAP
message.
• A Header element that contains header information.
• A Body element that contains call and response information.
2 • A Fault element containing errors and status information. © Hitachi Vantara LLC 2023. All Rights
Reserved.
WSDL
• Web Services Definition Language.
• Used to describe web services.
• It is the report service that shows how to call a particular service and binding
service (for each operation what service is used).
• There are 2 types of WSDL :
• Concrete WSDL (Complete WSDL), which tells what and where to call.
• Absolute WSDL, just defines what to call. Doesn’t have WSDL service
binding, but SDL can be called.
• It specifies the location of the service and the methods of the service using the
following elements :
• <types> : defines the (XML Schema) data types used by the web
service.
• <message> : Defines the data elements for each operation.
• <portType> : Describes the operations that can be performed and the
messages involved.
• <binding> Defines the protocol and data format for each port type.

3 © Hitachi Vantara LLC 2023. All Rights


Reserved.
REST
• Representational State Transfer Web services.
• RESTful are basically REST Architecture based Web Services.
• REST is tightly packed with http while establishing, but not like SOAP.
• REST uses standard operations/methods like GET, PUT, PATCH, DELETE, etc.
These methods are called as verbs of http.
• GET is used to retrieve a list of items or single item.
• POST is used to create an item.
• POST is used to UPDATE an item.
• DELETE is used to delete an item.
• REST APIs have 3 fundamental elements :
• Resource Identifier Syntax : Represent the actual resources that a
service exposes like URI
• Methods : Protocol mechanism used to transfer the data like GET, POST,
etc.
• Types of data transferred : XML, JSON
• Features :
• Everything in REST architecture is a resource.
• REST services use JSON format (Java Script Object Notation).
• RESTful web services are light weight, highly scalable and maintainable.
• REST APIs deliver better performance than SOAP services on any given
day.
• REST APIs are widely used in web-based applications.
4 © Hitachi Vantara LLC 2023. All Rights
Reserved.
• https://www.BankSystems.com:4098
• http is the protocol
• www.BankSystems.com is the base URL
• :4098 is the port number

• https://www.BankSystems.com:4098/
getBank?BankId=123&bank_name=Wells Fargo
• getBank is the relative URL
• ? Is the query parameter
• bankId is the key
• 123 is the keyValue
• &bank_name=Wells Fargo is another key-value pair

• Parameters can be of 2 types :


• Query parameters, which can have ‘n’ number of keys along with
values.
• Template parameter, which indicates the direct value as shown below
-> getBank/123

5 © Hitachi Vantara LLC 2023. All Rights


Reserved.

You might also like