SlideShare une entreprise Scribd logo
1  sur  17
SOAP – Simple Object Access Protocol




                                  Gourav Pal
                                  MSIT/12/002
                                  Amplify Mindware- BVU-Pune
   SOAP Concepts
   Structure of SOAP message
   SOAP Faults
   Data types
   Passing Objects
   Attachments
What is SOAP?
 SOAP stands for Simple Object Access
  Protocol
 SOAP is a simple XML-based protocol to let
  applications exchange information over
  HTTP
 SOAP is a W3C recommendation
 SOAP is for communication between
  applications
What is SOAP?
 SOAP is a communication protocol
 SOAP is a format for sending messages
 SOAP communicates via Internet
 SOAP is platform independent
 SOAP is language independent
   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
     A Fault element containing errors and status
      information
   All the elements above are declared in the default namespace for the
    SOAP envelope: http://www.w3.org/2001/12/soap-envelope
   and the default namespace for SOAP encoding and data types is:
    http://www.w3.org/2001/12/soap-encoding
Here are some important syntax rules:
 A SOAP message MUST be encoded using XML
 A SOAP message MUST use the SOAP Envelope
  namespace
 A SOAP message MUST use the SOAP Encoding
  namespace
 A SOAP message must NOT contain a DTD
  reference
 A SOAP message must NOT contain XML
  Processing Instructions
<?xml version="1.0"?>
< soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
< soap:Header>
...
< /soap:Header>
< soap:Body>
...
<soap:Fault>
...
</soap:Fault>
< /soap:Body>
< /soap:Envelope>
   The SOAP Envelope element is the root
    element of a SOAP message
   The xmlns:soap namespace should always
    have the value of:
    http://www.w3.org/2001/12/soap-envelope
   The encodingStyle attribute is used to define
    the data types used in the document
   Optional SOAP element
   Contains application-specific information
    (like authentication, payment, etc.) about the
    SOAP message
   If the Header element is present, it must be
    the first child element of the Envelope
    element
   Required SOAP element
   Contains the actual SOAP message intended
    for the ultimate endpoint of the message.

Let’s see how a SOAP request and response will
look like…..
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Body>
<m:GetPrice xmlns:m="http://www.w3schools.com/prices">
<m:Item>Apples</m:Item>
</m:GetPrice>
</soap:Body>
</soap:Envelope>

Note that the m:GetPrice and the Item elements above are
application-specific elements.
<?xml version="1.0"?>
<soap:Envelope
xmlns:soap="http://www.w3.org/2001/12/soap-envelope"
soap:encodingStyle="http://www.w3.org/2001/12/soap-encoding">
<soap:Body>
<m:GetPriceResponse
xmlns:m="http://www.w3schools.com/prices">
<m:Price>1.90</m:Price>
</m:GetPriceResponse>
</soap:Body>
</soap:Envelope>
   Optional SOAP element
   Used to indicate error messages
   If a Fault element is present, it must appear
    as a child element of the Body element.
   A Fault element can only appear once in a
    SOAP message.

The fault element has the following sub
elements…..
Sub Element     Description
<faultcode>     A code for identifying the fault
<faultstring>   A human readable explanation of the
                fault
<faultactor>    Information about who caused the
                fault to happen
<detail>        Holds application specific error
                information related to the Body
                element
The following faultcode values must be used in the faultcode
element when describing faults:
 Error               Description
 VersionMismatch     Found an invalid namespace for the SOAP
                     Envelope element
 MustUnderstand      An immediate child element of the Header
                     element, with the mustUnderstand attribute set
                     to "1", was not understood
 Client              The message was incorrectly formed or contained
                     incorrect information
 Server              There was a problem with the server so the
                     message could not proceed
<soap:Fault>
     <faultcode>soap:Server</faultcode>
     <faultstring>System.Web.Services.Protoc
ols.SoapException: Server was unable to
process request.
     </faultstring>
     <detail />
</soap:Fault>
Soap

Contenu connexe

En vedette

Smoke sentry 2_pdr_presentation
Smoke sentry 2_pdr_presentationSmoke sentry 2_pdr_presentation
Smoke sentry 2_pdr_presentationjeff1soccer
 
Cropping assignment digital image
Cropping assignment digital imageCropping assignment digital image
Cropping assignment digital imagejaylene16
 
What if no one is interested in Quality Improvement when we get home?
What if no one is interested in Quality Improvement when we get home?What if no one is interested in Quality Improvement when we get home?
What if no one is interested in Quality Improvement when we get home?lexie_daryan
 
12 days of Christmas
12 days of Christmas12 days of Christmas
12 days of Christmassdefazio17
 
(Eng) part iii ppt (5 july 2016 uspc)
(Eng) part iii ppt (5 july 2016 uspc)(Eng) part iii ppt (5 july 2016 uspc)
(Eng) part iii ppt (5 july 2016 uspc)Olena Ursu
 
Enterprise Mobile Methodology with Salesforce + MobileIron
Enterprise Mobile Methodology with Salesforce + MobileIronEnterprise Mobile Methodology with Salesforce + MobileIron
Enterprise Mobile Methodology with Salesforce + MobileIronQuinton Wall
 
Shirley Temple: 7 Memorable Movie Roles
Shirley Temple: 7 Memorable Movie RolesShirley Temple: 7 Memorable Movie Roles
Shirley Temple: 7 Memorable Movie RolesStinson
 
Synthesis and characterization of triphenylethylene derivatives with aggregat...
Synthesis and characterization of triphenylethylene derivatives with aggregat...Synthesis and characterization of triphenylethylene derivatives with aggregat...
Synthesis and characterization of triphenylethylene derivatives with aggregat...Universty of Gujrat, Pakistan
 
βασιλική του αγίου μάρκου
βασιλική του αγίου μάρκουβασιλική του αγίου μάρκου
βασιλική του αγίου μάρκουparaskevit
 
Smc Services Brochure
Smc Services BrochureSmc Services Brochure
Smc Services BrochureJohnMcW
 
A ENERXIA
A ENERXIAA ENERXIA
A ENERXIAevilig
 
What does academe know about social media?
What does academe know about social media?What does academe know about social media?
What does academe know about social media?Brendan Keegan
 
Effect of Minimally Invasive Low-intensity laser therapy (MILLT) and non-ster...
Effect of Minimally Invasive Low-intensity laser therapy (MILLT) and non-ster...Effect of Minimally Invasive Low-intensity laser therapy (MILLT) and non-ster...
Effect of Minimally Invasive Low-intensity laser therapy (MILLT) and non-ster...Nina Anigbogu
 
Mgceu presentation
Mgceu presentationMgceu presentation
Mgceu presentationOlena Ursu
 

En vedette (20)

Welcome!
Welcome!Welcome!
Welcome!
 
Smoke sentry 2_pdr_presentation
Smoke sentry 2_pdr_presentationSmoke sentry 2_pdr_presentation
Smoke sentry 2_pdr_presentation
 
Cropping assignment digital image
Cropping assignment digital imageCropping assignment digital image
Cropping assignment digital image
 
What if no one is interested in Quality Improvement when we get home?
What if no one is interested in Quality Improvement when we get home?What if no one is interested in Quality Improvement when we get home?
What if no one is interested in Quality Improvement when we get home?
 
12 days of Christmas
12 days of Christmas12 days of Christmas
12 days of Christmas
 
Qbfin
QbfinQbfin
Qbfin
 
Semasearch
SemasearchSemasearch
Semasearch
 
(Eng) part iii ppt (5 july 2016 uspc)
(Eng) part iii ppt (5 july 2016 uspc)(Eng) part iii ppt (5 july 2016 uspc)
(Eng) part iii ppt (5 july 2016 uspc)
 
Enterprise Mobile Methodology with Salesforce + MobileIron
Enterprise Mobile Methodology with Salesforce + MobileIronEnterprise Mobile Methodology with Salesforce + MobileIron
Enterprise Mobile Methodology with Salesforce + MobileIron
 
Shirley Temple: 7 Memorable Movie Roles
Shirley Temple: 7 Memorable Movie RolesShirley Temple: 7 Memorable Movie Roles
Shirley Temple: 7 Memorable Movie Roles
 
Synthesis and characterization of triphenylethylene derivatives with aggregat...
Synthesis and characterization of triphenylethylene derivatives with aggregat...Synthesis and characterization of triphenylethylene derivatives with aggregat...
Synthesis and characterization of triphenylethylene derivatives with aggregat...
 
βασιλική του αγίου μάρκου
βασιλική του αγίου μάρκουβασιλική του αγίου μάρκου
βασιλική του αγίου μάρκου
 
Sprint review
Sprint reviewSprint review
Sprint review
 
Smc Services Brochure
Smc Services BrochureSmc Services Brochure
Smc Services Brochure
 
A ENERXIA
A ENERXIAA ENERXIA
A ENERXIA
 
What does academe know about social media?
What does academe know about social media?What does academe know about social media?
What does academe know about social media?
 
Aa nv
Aa nvAa nv
Aa nv
 
Effect of Minimally Invasive Low-intensity laser therapy (MILLT) and non-ster...
Effect of Minimally Invasive Low-intensity laser therapy (MILLT) and non-ster...Effect of Minimally Invasive Low-intensity laser therapy (MILLT) and non-ster...
Effect of Minimally Invasive Low-intensity laser therapy (MILLT) and non-ster...
 
Mgceu presentation
Mgceu presentationMgceu presentation
Mgceu presentation
 
Plaza Parking With Speakers Notes
Plaza Parking With Speakers NotesPlaza Parking With Speakers Notes
Plaza Parking With Speakers Notes
 

Similaire à Soap

Web-Services!.pptx
Web-Services!.pptxWeb-Services!.pptx
Web-Services!.pptxssuserae0316
 
fffSeminar
fffSeminarfffSeminar
fffSeminarpavanpp
 
WebServices Basic Overview
WebServices Basic OverviewWebServices Basic Overview
WebServices Basic OverviewRajkattamuri
 
WebServices Basic Overview
WebServices Basic OverviewWebServices Basic Overview
WebServices Basic OverviewKhan625
 
Introduction to WebServices
Introduction to WebServicesIntroduction to WebServices
Introduction to WebServicesKhasim Cise
 
Web Services
Web ServicesWeb Services
Web ServicesF K
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAPSafwan Hashmi
 
Simple Object Access Protocol
Simple Object Access ProtocolSimple Object Access Protocol
Simple Object Access ProtocolSaatviga Sudhahar
 
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...Kevin Lee
 
Java Web Service - Summer 2004
Java Web Service - Summer 2004Java Web Service - Summer 2004
Java Web Service - Summer 2004Danny Teng
 
web programming
web programmingweb programming
web programmingshreeuva
 

Similaire à Soap (20)

SOAP Overview
SOAP OverviewSOAP Overview
SOAP Overview
 
WebServices introduction
WebServices introductionWebServices introduction
WebServices introduction
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAP
 
Web-Services!.pptx
Web-Services!.pptxWeb-Services!.pptx
Web-Services!.pptx
 
Soap xp-wg
Soap xp-wgSoap xp-wg
Soap xp-wg
 
fffSeminar
fffSeminarfffSeminar
fffSeminar
 
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
 
Introduction to WebServices
Introduction to WebServicesIntroduction to WebServices
Introduction to WebServices
 
Soap vs rest
Soap vs restSoap vs rest
Soap vs rest
 
SOAP by luv
SOAP by luvSOAP by luv
SOAP by luv
 
Web Services
Web ServicesWeb Services
Web Services
 
Introduction to SOAP
Introduction to SOAPIntroduction to SOAP
Introduction to SOAP
 
Simple Object Access Protocol
Simple Object Access ProtocolSimple Object Access Protocol
Simple Object Access Protocol
 
SCDJWS 2. Soap
SCDJWS 2. SoapSCDJWS 2. Soap
SCDJWS 2. Soap
 
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
Exchange of data over internet using web service(e.g., soap and rest) in SAS ...
 
Java Web Service - Summer 2004
Java Web Service - Summer 2004Java Web Service - Summer 2004
Java Web Service - Summer 2004
 
web programming
web programmingweb programming
web programming
 
Lecture 3 soap
Lecture 3 soapLecture 3 soap
Lecture 3 soap
 

Dernier

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdfQucHHunhnh
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesShubhangi Sonawane
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfChris Hunter
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfagholdier
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxNikitaBankoti2
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxVishalSingh1417
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Celine George
 
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.MaryamAhmad92
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docxPoojaSen20
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17Celine George
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfPoh-Sun Goh
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104misteraugie
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfAdmir Softic
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxnegromaestrong
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeThiyagu K
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphThiyagu K
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.pptRamjanShidvankar
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docxPoojaSen20
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingTechSoup
 

Dernier (20)

1029 - Danh muc Sach Giao Khoa 10 . pdf
1029 -  Danh muc Sach Giao Khoa 10 . pdf1029 -  Danh muc Sach Giao Khoa 10 . pdf
1029 - Danh muc Sach Giao Khoa 10 . pdf
 
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural ResourcesEnergy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
Energy Resources. ( B. Pharmacy, 1st Year, Sem-II) Natural Resources
 
Making and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdfMaking and Justifying Mathematical Decisions.pdf
Making and Justifying Mathematical Decisions.pdf
 
Holdier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdfHoldier Curriculum Vitae (April 2024).pdf
Holdier Curriculum Vitae (April 2024).pdf
 
Role Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptxRole Of Transgenic Animal In Target Validation-1.pptx
Role Of Transgenic Animal In Target Validation-1.pptx
 
Unit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptxUnit-V; Pricing (Pharma Marketing Management).pptx
Unit-V; Pricing (Pharma Marketing Management).pptx
 
Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17Advanced Views - Calendar View in Odoo 17
Advanced Views - Calendar View in Odoo 17
 
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptxINDIA QUIZ 2024 RLAC DELHI UNIVERSITY.pptx
INDIA QUIZ 2024 RLAC DELHI UNIVERSITY.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.
 
PROCESS RECORDING FORMAT.docx
PROCESS      RECORDING        FORMAT.docxPROCESS      RECORDING        FORMAT.docx
PROCESS RECORDING FORMAT.docx
 
How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17How to Give a Domain for a Field in Odoo 17
How to Give a Domain for a Field in Odoo 17
 
Micro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdfMicro-Scholarship, What it is, How can it help me.pdf
Micro-Scholarship, What it is, How can it help me.pdf
 
Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104Nutritional Needs Presentation - HLTH 104
Nutritional Needs Presentation - HLTH 104
 
Key note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdfKey note speaker Neum_Admir Softic_ENG.pdf
Key note speaker Neum_Admir Softic_ENG.pdf
 
Seal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptxSeal of Good Local Governance (SGLG) 2024Final.pptx
Seal of Good Local Governance (SGLG) 2024Final.pptx
 
Measures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and ModeMeasures of Central Tendency: Mean, Median and Mode
Measures of Central Tendency: Mean, Median and Mode
 
Z Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot GraphZ Score,T Score, Percential Rank and Box Plot Graph
Z Score,T Score, Percential Rank and Box Plot Graph
 
Application orientated numerical on hev.ppt
Application orientated numerical on hev.pptApplication orientated numerical on hev.ppt
Application orientated numerical on hev.ppt
 
psychiatric nursing HISTORY COLLECTION .docx
psychiatric  nursing HISTORY  COLLECTION  .docxpsychiatric  nursing HISTORY  COLLECTION  .docx
psychiatric nursing HISTORY COLLECTION .docx
 
Grant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy ConsultingGrant Readiness 101 TechSoup and Remy Consulting
Grant Readiness 101 TechSoup and Remy Consulting
 

Soap