SlideShare a Scribd company logo
1 of 11
Web Service
• A Web Service can be defined by following ways:
– is a client server application or application component
for communication.
– method of communication between two devices over
network.
– is a software system for interoperable machine to
machine communication.
– is a collection of standards or protocols for exchanging
information between two devices or application.
• As shown in the figure, java, .net or PHP applications can
communicate with other applications through web service
over the network.
• For example, a Java application can interact with Java, .Net
and PHP applications. So web service is a language
independent way of communication.
Types of Web Services
• There are mainly two types of web services.
– SOAP web services.
– RESTful web services.
SOAP
• SOAP is an acronym for Simple Object Access
Protocol. It is an XML-based messaging
protocol for exchanging information among
computers.
• SOAP is an application of the XML
specification.
SOAP - Message Structure
• A SOAP message is an ordinary XML document
containing the following elements −
– Envelope: Defines the start and the end of the
message. It is a mandatory element.
– Header: Contains any optional attributes of the
message used in processing the message, either at an
intermediary point or at the ultimate end-point. It is
an optional element.
– Body: Contains the XML data comprising the message
being sent. It is a mandatory element.
– Fault: An optional Fault element that provides
information about errors that occur while processing
the message.
• All these elements are declared in the default
namespace for the SOAP envelope
− http://www.w3.org/2001/12/soap-
envelope
• The default namespace for SOAP encoding
and data types is
− http://www.w3.org/2001/12/soap-encoding
SOAP - Envelope
• The SOAP envelope indicates the start and the
end of the message so that the receiver knows
when an entire message has been received.
• The SOAP envelope solves the problem of
knowing when you are done receiving a
message and are ready to process it.
• The SOAP envelope is, therefore, basically a
packaging mechanism.
• Every SOAP message has a root Envelope
element.
• Envelope is a mandatory part of SOAP message.
• Every Envelope element must contain exactly one
Body element.
• If an Envelope contains a Header element, it must
contain no more than one, and it must appear as
the first child of the Envelope, before the Body.
• The envelope changes when SOAP versions
change.
• The SOAP envelope is specified using
the ENV namespace prefix and the Envelope
element.
• The optional SOAP encoding is also specified
using a namespace name and the
optional encodingStyle element, which could
also point to an encoding style other than the
SOAP one.
• A v1.1-compliant SOAP processor generates a
fault upon receiving a message containing the
v1.2 envelope namespace.
• A v1.2-compliant SOAP processor generates
a VersionMismatch fault if it receives a
message that does not include the v1.2
envelope namespace.
Web services

More Related Content

What's hot

What's hot (20)

Database Management System - 2a
Database Management System - 2aDatabase Management System - 2a
Database Management System - 2a
 
Mule mel 2
Mule mel 2Mule mel 2
Mule mel 2
 
SOAP - Simple Object Access Protocol
SOAP - Simple Object Access ProtocolSOAP - Simple Object Access Protocol
SOAP - Simple Object Access Protocol
 
Consume wsa
Consume wsaConsume wsa
Consume wsa
 
Simple object access protocol(soap )
Simple object access protocol(soap )Simple object access protocol(soap )
Simple object access protocol(soap )
 
Basic example using file connector in anypoint studio
Basic example using file connector in anypoint studioBasic example using file connector in anypoint studio
Basic example using file connector in anypoint studio
 
XML-RPC (XML Remote Procedure Call)
XML-RPC (XML Remote Procedure Call)XML-RPC (XML Remote Procedure Call)
XML-RPC (XML Remote Procedure Call)
 
Hypertext Transfer Protocol
Hypertext Transfer ProtocolHypertext Transfer Protocol
Hypertext Transfer Protocol
 
Multi-language FBP with flowex
Multi-language FBP with flowexMulti-language FBP with flowex
Multi-language FBP with flowex
 
HTTP Basic
HTTP BasicHTTP Basic
HTTP Basic
 
Web technology Unit I Part C
Web technology Unit I  Part CWeb technology Unit I  Part C
Web technology Unit I Part C
 
Shipping your logs to elk from mule app/cloudhub part 2
Shipping your logs to elk from mule app/cloudhub   part 2Shipping your logs to elk from mule app/cloudhub   part 2
Shipping your logs to elk from mule app/cloudhub part 2
 
SOAP by luv
SOAP by luvSOAP by luv
SOAP by luv
 
Web technology Unit-I Part D - message format
Web technology Unit-I  Part D - message formatWeb technology Unit-I  Part D - message format
Web technology Unit-I Part D - message format
 
ITI004En-Introduction to XML (III)
ITI004En-Introduction to XML (III)ITI004En-Introduction to XML (III)
ITI004En-Introduction to XML (III)
 
Flow-based programming with Elixir
Flow-based programming with ElixirFlow-based programming with Elixir
Flow-based programming with Elixir
 
Using message enricher
Using message enricherUsing message enricher
Using message enricher
 
PHP and Web Services
PHP and Web ServicesPHP and Web Services
PHP and Web Services
 
Simple Object Access Protocol (SOAP)
Simple Object Access Protocol (SOAP)Simple Object Access Protocol (SOAP)
Simple Object Access Protocol (SOAP)
 
SOAP--Simple Object Access Protocol
SOAP--Simple Object Access ProtocolSOAP--Simple Object Access Protocol
SOAP--Simple Object Access Protocol
 

Similar to Web services

Intro to web services
Intro to web servicesIntro to web services
Intro to web services
Neil Ghosh
 

Similar to Web services (20)

Soa 10 soa technology soap
Soa 10 soa technology soapSoa 10 soa technology soap
Soa 10 soa technology soap
 
web programming
web programmingweb programming
web programming
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAP
 
Web-Services!.pptx
Web-Services!.pptxWeb-Services!.pptx
Web-Services!.pptx
 
SOAP Overview
SOAP OverviewSOAP Overview
SOAP Overview
 
Lecture 3 soap
Lecture 3 soapLecture 3 soap
Lecture 3 soap
 
Lecture 3 soap
Lecture 3 soapLecture 3 soap
Lecture 3 soap
 
Soap xp-wg
Soap xp-wgSoap xp-wg
Soap xp-wg
 
C# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENTC# ASP.NET WEB API APPLICATION DEVELOPMENT
C# ASP.NET WEB API APPLICATION DEVELOPMENT
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAP
 
WebServices Basic Overview
WebServices Basic OverviewWebServices Basic Overview
WebServices Basic Overview
 
WebServices Basic Overview
WebServices Basic OverviewWebServices Basic Overview
WebServices Basic Overview
 
Mule Webservices
Mule WebservicesMule Webservices
Mule Webservices
 
Soap web service
Soap web serviceSoap web service
Soap web service
 
Introduction to WebServices
Introduction to WebServicesIntroduction to WebServices
Introduction to WebServices
 
SOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIESSOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIES
 
Soap and restful webservice
Soap and restful webserviceSoap and restful webservice
Soap and restful webservice
 
Intro to web services
Intro to web servicesIntro to web services
Intro to web services
 
Soap
SoapSoap
Soap
 
fffSeminar
fffSeminarfffSeminar
fffSeminar
 

Recently uploaded

Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
ZurliaSoop
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
heathfieldcps1
 

Recently uploaded (20)

Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)Accessible Digital Futures project (20/03/2024)
Accessible Digital Futures project (20/03/2024)
 
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdfUnit 3 Emotional Intelligence and Spiritual Intelligence.pdf
Unit 3 Emotional Intelligence and Spiritual Intelligence.pdf
 
Google Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptxGoogle Gemini An AI Revolution in Education.pptx
Google Gemini An AI Revolution in Education.pptx
 
REMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptxREMIFENTANIL: An Ultra short acting opioid.pptx
REMIFENTANIL: An Ultra short acting opioid.pptx
 
How to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptxHow to setup Pycharm environment for Odoo 17.pptx
How to setup Pycharm environment for Odoo 17.pptx
 
SOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning PresentationSOC 101 Demonstration of Learning Presentation
SOC 101 Demonstration of Learning Presentation
 
ICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptxICT Role in 21st Century Education & its Challenges.pptx
ICT Role in 21st Century Education & its Challenges.pptx
 
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
Jual Obat Aborsi Hongkong ( Asli No.1 ) 085657271886 Obat Penggugur Kandungan...
 
The basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptxThe basics of sentences session 3pptx.pptx
The basics of sentences session 3pptx.pptx
 
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptxCOMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
COMMUNICATING NEGATIVE NEWS - APPROACHES .pptx
 
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptxHMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
HMCS Max Bernays Pre-Deployment Brief (May 2024).pptx
 
ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.ICT role in 21st century education and it's challenges.
ICT role in 21st century education and it's challenges.
 
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
TỔNG ÔN TẬP THI VÀO LỚP 10 MÔN TIẾNG ANH NĂM HỌC 2023 - 2024 CÓ ĐÁP ÁN (NGỮ Â...
 
Graduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - EnglishGraduate Outcomes Presentation Slides - English
Graduate Outcomes Presentation Slides - English
 
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
Sensory_Experience_and_Emotional_Resonance_in_Gabriel_Okaras_The_Piano_and_Th...
 
Philosophy of china and it's charactistics
Philosophy of china and it's charactisticsPhilosophy of china and it's charactistics
Philosophy of china and it's charactistics
 
Fostering Friendships - Enhancing Social Bonds in the Classroom
Fostering Friendships - Enhancing Social Bonds  in the ClassroomFostering Friendships - Enhancing Social Bonds  in the Classroom
Fostering Friendships - Enhancing Social Bonds in the Classroom
 
Tatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf artsTatlong Kwento ni Lola basyang-1.pdf arts
Tatlong Kwento ni Lola basyang-1.pdf arts
 
21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx21st_Century_Skills_Framework_Final_Presentation_2.pptx
21st_Century_Skills_Framework_Final_Presentation_2.pptx
 
Wellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptxWellbeing inclusion and digital dystopias.pptx
Wellbeing inclusion and digital dystopias.pptx
 

Web services

  • 1.
  • 2. Web Service • A Web Service can be defined by following ways: – is a client server application or application component for communication. – method of communication between two devices over network. – is a software system for interoperable machine to machine communication. – is a collection of standards or protocols for exchanging information between two devices or application.
  • 3. • As shown in the figure, java, .net or PHP applications can communicate with other applications through web service over the network. • For example, a Java application can interact with Java, .Net and PHP applications. So web service is a language independent way of communication.
  • 4. Types of Web Services • There are mainly two types of web services. – SOAP web services. – RESTful web services.
  • 5. SOAP • SOAP is an acronym for Simple Object Access Protocol. It is an XML-based messaging protocol for exchanging information among computers. • SOAP is an application of the XML specification.
  • 6. SOAP - Message Structure • A SOAP message is an ordinary XML document containing the following elements − – Envelope: Defines the start and the end of the message. It is a mandatory element. – Header: Contains any optional attributes of the message used in processing the message, either at an intermediary point or at the ultimate end-point. It is an optional element. – Body: Contains the XML data comprising the message being sent. It is a mandatory element. – Fault: An optional Fault element that provides information about errors that occur while processing the message.
  • 7. • All these elements are declared in the default namespace for the SOAP envelope − http://www.w3.org/2001/12/soap- envelope • The default namespace for SOAP encoding and data types is − http://www.w3.org/2001/12/soap-encoding
  • 8. SOAP - Envelope • The SOAP envelope indicates the start and the end of the message so that the receiver knows when an entire message has been received. • The SOAP envelope solves the problem of knowing when you are done receiving a message and are ready to process it. • The SOAP envelope is, therefore, basically a packaging mechanism.
  • 9. • Every SOAP message has a root Envelope element. • Envelope is a mandatory part of SOAP message. • Every Envelope element must contain exactly one Body element. • If an Envelope contains a Header element, it must contain no more than one, and it must appear as the first child of the Envelope, before the Body. • The envelope changes when SOAP versions change. • The SOAP envelope is specified using the ENV namespace prefix and the Envelope element.
  • 10. • The optional SOAP encoding is also specified using a namespace name and the optional encodingStyle element, which could also point to an encoding style other than the SOAP one. • A v1.1-compliant SOAP processor generates a fault upon receiving a message containing the v1.2 envelope namespace. • A v1.2-compliant SOAP processor generates a VersionMismatch fault if it receives a message that does not include the v1.2 envelope namespace.