SlideShare a Scribd company logo
Introduction to
Web
Services
Web Services
• A Web service is a method of communication
between two electronic devices over
the World Wide Web
• In other words, a web service helps to convert
your application into a web-based application.
Why web services?
• Your application can publish its function or
message to the rest of the world.
Department of Information Science Engg
WEB
Services
REST Services SOAP and WSDL
4/6/2017 Distributed Computing, M. L. Liu 11
Web service protocol stack
transport
network
messaging
service description
service discovery
transport
network
messaging
service description
service discovery
application application
WSDL
• WSDL stands for Web Services Description Language
• It is an XML-based language that is used for
describing the functionality offered by a Web service.
• WSDL file contains info about
o How the service can be called
o What parameter it expects
o What data structure it returns
o Which port the application uses
o Which protocol the web service uses (like https)
SOAP based services
• Simple Object Access Protocol
• Exclusively use XML as the data format to exchange info
over HTTP.
• A service that needs to be used by another service needs
to specify its usage through a “Service Description”.
• In this case, we use WSDL – Web Services Description
Language
• Ex: Apache Axis, Apache CXF
• SOAP has nothing to do with SOA – Service Oriented
Architecture
4/6/2017 Distributed Computing, M. L. Liu 23
SOAP
• SOAP is a protocol which applies XML for
message exchange in support of remote
method calls over the Internet.
• Compared to remote method invocation or
CORBA-based facilities:
– SOAP is web-based or “wired” and hence is not
subject to firewall restrictions
– Language-independent
– Can provide just-in-time service integration
4/6/2017 Distributed Computing, M. L. Liu 31
SOAP Messages
message body
SOAP body
header block
header block
SOAP header
SOAP envelope
optionalrequired
A SOAP message is an ordinary XML document
containing the following elements:
• Envelope - identifies the XML document as a SOAP message
o Header - contains information about the request.
o Body
 Message data - contains request and response information
itself.
 Fault (optional) - containing errors and status information.
Need for stubs (similar to RMI)
SOAP – Pros & Cons
• SOAP Pros
– Standard protocol for exchanging information in a decentralized
and distributed environment.
– Platform independent & Vendor neutral.
– Simple compared to RMI, CORBA, and DCOM etc
– Decouples the encoding and communications protocol.
– Anything that can generate XML can communicate through SOAP.
– Additional Security in addition to HTTP authentication or HTTPS.
– Supported by most languages and tools.
• SOAP Cons
– Complex compared to RESTful Services
– Higher learning curve
– Being protocol heavy may lead to performance issues
4/6/2017 Distributed Computing, M. L. Liu 37
Summary
• SOAP is a protocol that makes use of HTTP requests
and responses to effect remote method calls to web
services.
• A SOAP method call is encoded in XML and is
embedded in an HTTP request
• The return value of a method call is likewise
embedded and encoded in an HTTP response
• A number of SOAP APIs are available for
programming web services and client method calls.
The Apache API was introduced.
Soap web service

More Related Content

What's hot

Json
JsonJson
REST API
REST APIREST API
REST API
Tofazzal Ahmed
 
Web service Introduction
Web service IntroductionWeb service Introduction
Web service Introduction
Madhukar Kumar
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
Manisha Keim
 
Introduction to the Web API
Introduction to the Web APIIntroduction to the Web API
Introduction to the Web API
Brad Genereaux
 
REST-API introduction for developers
REST-API introduction for developersREST-API introduction for developers
REST-API introduction for developers
Patrick Savalle
 
The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2
fishwarter
 
Javascript 101
Javascript 101Javascript 101
Javascript 101
Shlomi Komemi
 
An Introduction To REST API
An Introduction To REST APIAn Introduction To REST API
An Introduction To REST API
Aniruddh Bhilvare
 
JSON: The Basics
JSON: The BasicsJSON: The Basics
JSON: The Basics
Jeff Fox
 
Node.js Express
Node.js  ExpressNode.js  Express
Node.js Express
Eyal Vardi
 
Introduction to Cascading Style Sheets
Introduction to Cascading Style SheetsIntroduction to Cascading Style Sheets
Introduction to Cascading Style Sheets
Tushar Joshi
 
An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST
Ram Awadh Prasad, PMP
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
Andres Baravalle
 
Http methods
Http methodsHttp methods
Http methods
maamir farooq
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
BG Java EE Course
 
Java Web Programming [1/9] : Introduction to Web Application
Java Web Programming [1/9] : Introduction to Web ApplicationJava Web Programming [1/9] : Introduction to Web Application
Java Web Programming [1/9] : Introduction to Web Application
IMC Institute
 

What's hot (20)

Json
JsonJson
Json
 
REST API
REST APIREST API
REST API
 
Web service Introduction
Web service IntroductionWeb service Introduction
Web service Introduction
 
SOAP-based Web Services
SOAP-based Web ServicesSOAP-based Web Services
SOAP-based Web Services
 
Java Server Pages(jsp)
Java Server Pages(jsp)Java Server Pages(jsp)
Java Server Pages(jsp)
 
Introduction to the Web API
Introduction to the Web APIIntroduction to the Web API
Introduction to the Web API
 
REST-API introduction for developers
REST-API introduction for developersREST-API introduction for developers
REST-API introduction for developers
 
Soap vs rest
Soap vs restSoap vs rest
Soap vs rest
 
The Django Web Application Framework 2
The Django Web Application Framework 2The Django Web Application Framework 2
The Django Web Application Framework 2
 
Javascript 101
Javascript 101Javascript 101
Javascript 101
 
An Introduction To REST API
An Introduction To REST APIAn Introduction To REST API
An Introduction To REST API
 
JSON: The Basics
JSON: The BasicsJSON: The Basics
JSON: The Basics
 
Php mysql ppt
Php mysql pptPhp mysql ppt
Php mysql ppt
 
Node.js Express
Node.js  ExpressNode.js  Express
Node.js Express
 
Introduction to Cascading Style Sheets
Introduction to Cascading Style SheetsIntroduction to Cascading Style Sheets
Introduction to Cascading Style Sheets
 
An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST An Overview of Web Services: SOAP and REST
An Overview of Web Services: SOAP and REST
 
Introduction to JavaScript
Introduction to JavaScriptIntroduction to JavaScript
Introduction to JavaScript
 
Http methods
Http methodsHttp methods
Http methods
 
Java Servlets
Java ServletsJava Servlets
Java Servlets
 
Java Web Programming [1/9] : Introduction to Web Application
Java Web Programming [1/9] : Introduction to Web ApplicationJava Web Programming [1/9] : Introduction to Web Application
Java Web Programming [1/9] : Introduction to Web Application
 

Similar to Soap web service

Web services
Web servicesWeb services
Web services
Akshay Ballarpure
 
Web services protocols
Web services protocolsWeb services protocols
Web services protocolsJin Castor
 
Simple Object Access Protocol (SOAP).pptx
Simple Object Access Protocol (SOAP).pptxSimple Object Access Protocol (SOAP).pptx
Simple Object Access Protocol (SOAP).pptx
ShohedulIslam3
 
Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and development
ishmecse13
 
SOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIESSOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIES
tamilmozhiyaltamilmo
 
Web services
Web servicesWeb services
Web services
Brillio
 
ITI004En-Introduction to XML (III)
ITI004En-Introduction to XML (III)ITI004En-Introduction to XML (III)
ITI004En-Introduction to XML (III)
Huibert Aalbers
 
Webservices divya 1
Webservices divya 1Webservices divya 1
Webservices divya 1
rajamandava4
 
Webservices divya
Webservices divyaWebservices divya
Webservices divya
rajamandava4
 
complete web service1.ppt
complete web service1.pptcomplete web service1.ppt
complete web service1.ppt
Dr.Saranya K.G
 
Web Services - A brief overview
Web Services -  A brief overviewWeb Services -  A brief overview
Web Services - A brief overviewRaveendra Bhat
 
Web services for banks
Web services for banksWeb services for banks
Web services for banks
Sreekanth Narendran
 
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Archunit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
sudharani127782
 
SynapseIndia dotnet web applications development
SynapseIndia  dotnet web applications developmentSynapseIndia  dotnet web applications development
SynapseIndia dotnet web applications development
Synapseindiappsdevelopment
 
SOAP by luv
SOAP by luvSOAP by luv
SOAP by luv
aligarhking
 
Web services
Web servicesWeb services
Web services
Ramakrishna kapa
 
WebServices
WebServicesWebServices
WebServices
Sunil Komarapu
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
snegacmr
 

Similar to Soap web service (20)

Web services
Web servicesWeb services
Web services
 
Web services protocols
Web services protocolsWeb services protocols
Web services protocols
 
Simple Object Access Protocol (SOAP).pptx
Simple Object Access Protocol (SOAP).pptxSimple Object Access Protocol (SOAP).pptx
Simple Object Access Protocol (SOAP).pptx
 
Web services concepts, protocols and development
Web services concepts, protocols and developmentWeb services concepts, protocols and development
Web services concepts, protocols and development
 
SOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIESSOAP WEB TECHNOLOGIES
SOAP WEB TECHNOLOGIES
 
Web services
Web servicesWeb services
Web services
 
ITI004En-Introduction to XML (III)
ITI004En-Introduction to XML (III)ITI004En-Introduction to XML (III)
ITI004En-Introduction to XML (III)
 
Wt unit 6 ppts web services
Wt unit 6 ppts web servicesWt unit 6 ppts web services
Wt unit 6 ppts web services
 
Webservices divya 1
Webservices divya 1Webservices divya 1
Webservices divya 1
 
Webservices divya
Webservices divyaWebservices divya
Webservices divya
 
soap toolkit
soap toolkitsoap toolkit
soap toolkit
 
complete web service1.ppt
complete web service1.pptcomplete web service1.ppt
complete web service1.ppt
 
Web Services - A brief overview
Web Services -  A brief overviewWeb Services -  A brief overview
Web Services - A brief overview
 
Web services for banks
Web services for banksWeb services for banks
Web services for banks
 
unit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Archunit -4 spring web services like SOA Arch
unit -4 spring web services like SOA Arch
 
SynapseIndia dotnet web applications development
SynapseIndia  dotnet web applications developmentSynapseIndia  dotnet web applications development
SynapseIndia dotnet web applications development
 
SOAP by luv
SOAP by luvSOAP by luv
SOAP by luv
 
Web services
Web servicesWeb services
Web services
 
WebServices
WebServicesWebServices
WebServices
 
Rest based xml web services
Rest based xml web servicesRest based xml web services
Rest based xml web services
 

Recently uploaded

一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
keoku
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
ufdana
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
JungkooksNonexistent
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Sanjeev Rampal
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
nirahealhty
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Brad Spiegel Macon GA
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
3ipehhoa
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
Rogerio Filho
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
GTProductions1
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
eutxy
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
laozhuseo02
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
Javier Lasa
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
3ipehhoa
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
natyesu
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
JeyaPerumal1
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
Gal Baras
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
Arif0071
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
VivekSinghShekhawat2
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
laozhuseo02
 

Recently uploaded (20)

一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
一比一原版(SLU毕业证)圣路易斯大学毕业证成绩单专业办理
 
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
一比一原版(CSU毕业证)加利福尼亚州立大学毕业证成绩单专业办理
 
Latest trends in computer networking.pptx
Latest trends in computer networking.pptxLatest trends in computer networking.pptx
Latest trends in computer networking.pptx
 
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and GuidelinesMulti-cluster Kubernetes Networking- Patterns, Projects and Guidelines
Multi-cluster Kubernetes Networking- Patterns, Projects and Guidelines
 
This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!This 7-second Brain Wave Ritual Attracts Money To You.!
This 7-second Brain Wave Ritual Attracts Money To You.!
 
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptxBridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
Bridging the Digital Gap Brad Spiegel Macon, GA Initiative.pptx
 
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
原版仿制(uob毕业证书)英国伯明翰大学毕业证本科学历证书原版一模一样
 
guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...guildmasters guide to ravnica Dungeons & Dragons 5...
guildmasters guide to ravnica Dungeons & Dragons 5...
 
Comptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guideComptia N+ Standard Networking lesson guide
Comptia N+ Standard Networking lesson guide
 
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
一比一原版(LBS毕业证)伦敦商学院毕业证成绩单专业办理
 
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shopHistory+of+E-commerce+Development+in+China-www.cfye-commerce.shop
History+of+E-commerce+Development+in+China-www.cfye-commerce.shop
 
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdfJAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
JAVIER LASA-EXPERIENCIA digital 1986-2024.pdf
 
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
急速办(bedfordhire毕业证书)英国贝德福特大学毕业证成绩单原版一模一样
 
BASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptxBASIC C++ lecture NOTE C++ lecture 3.pptx
BASIC C++ lecture NOTE C++ lecture 3.pptx
 
1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...1.Wireless Communication System_Wireless communication is a broad term that i...
1.Wireless Communication System_Wireless communication is a broad term that i...
 
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
APNIC Foundation, presented by Ellisha Heppner at the PNG DNS Forum 2024
 
How to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptxHow to Use Contact Form 7 Like a Pro.pptx
How to Use Contact Form 7 Like a Pro.pptx
 
test test test test testtest test testtest test testtest test testtest test ...
test test  test test testtest test testtest test testtest test testtest test ...test test  test test testtest test testtest test testtest test testtest test ...
test test test test testtest test testtest test testtest test testtest test ...
 
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptxInternet-Security-Safeguarding-Your-Digital-World (1).pptx
Internet-Security-Safeguarding-Your-Digital-World (1).pptx
 
The+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptxThe+Prospects+of+E-Commerce+in+China.pptx
The+Prospects+of+E-Commerce+in+China.pptx
 

Soap web service

  • 2. Web Services • A Web service is a method of communication between two electronic devices over the World Wide Web • In other words, a web service helps to convert your application into a web-based application.
  • 3. Why web services? • Your application can publish its function or message to the rest of the world.
  • 4.
  • 5.
  • 6.
  • 7.
  • 8.
  • 9.
  • 10. Department of Information Science Engg WEB Services REST Services SOAP and WSDL
  • 11. 4/6/2017 Distributed Computing, M. L. Liu 11 Web service protocol stack transport network messaging service description service discovery transport network messaging service description service discovery application application
  • 12.
  • 13.
  • 14.
  • 15. WSDL • WSDL stands for Web Services Description Language • It is an XML-based language that is used for describing the functionality offered by a Web service. • WSDL file contains info about o How the service can be called o What parameter it expects o What data structure it returns o Which port the application uses o Which protocol the web service uses (like https)
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 22. SOAP based services • Simple Object Access Protocol • Exclusively use XML as the data format to exchange info over HTTP. • A service that needs to be used by another service needs to specify its usage through a “Service Description”. • In this case, we use WSDL – Web Services Description Language • Ex: Apache Axis, Apache CXF • SOAP has nothing to do with SOA – Service Oriented Architecture
  • 23. 4/6/2017 Distributed Computing, M. L. Liu 23 SOAP • SOAP is a protocol which applies XML for message exchange in support of remote method calls over the Internet. • Compared to remote method invocation or CORBA-based facilities: – SOAP is web-based or “wired” and hence is not subject to firewall restrictions – Language-independent – Can provide just-in-time service integration
  • 24.
  • 25.
  • 26.
  • 27.
  • 28.
  • 29.
  • 30.
  • 31. 4/6/2017 Distributed Computing, M. L. Liu 31 SOAP Messages message body SOAP body header block header block SOAP header SOAP envelope optionalrequired
  • 32. A SOAP message is an ordinary XML document containing the following elements: • Envelope - identifies the XML document as a SOAP message o Header - contains information about the request. o Body  Message data - contains request and response information itself.  Fault (optional) - containing errors and status information.
  • 33.
  • 34. Need for stubs (similar to RMI)
  • 35.
  • 36. SOAP – Pros & Cons • SOAP Pros – Standard protocol for exchanging information in a decentralized and distributed environment. – Platform independent & Vendor neutral. – Simple compared to RMI, CORBA, and DCOM etc – Decouples the encoding and communications protocol. – Anything that can generate XML can communicate through SOAP. – Additional Security in addition to HTTP authentication or HTTPS. – Supported by most languages and tools. • SOAP Cons – Complex compared to RESTful Services – Higher learning curve – Being protocol heavy may lead to performance issues
  • 37. 4/6/2017 Distributed Computing, M. L. Liu 37 Summary • SOAP is a protocol that makes use of HTTP requests and responses to effect remote method calls to web services. • A SOAP method call is encoded in XML and is embedded in an HTTP request • The return value of a method call is likewise embedded and encoded in an HTTP response • A number of SOAP APIs are available for programming web services and client method calls. The Apache API was introduced.