SOAP: Difference between revisions

847 bytes added ,  22 November 2007
Adding
(Filling out)
(Adding)
Line 3: Line 3:
SOAP is the basis of [[Web Service|Web Services]] within [[Visual DataFlex]].
SOAP is the basis of [[Web Service|Web Services]] within [[Visual DataFlex]].


A SOAP message is composed of an outer element known as the [Envelope  
A SOAP message is composed of an outer element, the '''Envelope''', which then contains an optional '''Header''' element and a required '''Body''' element.  Many simple SOAP services make no use of the Header element, but it is required for most of the more advanced [[Web_Services#Web_Service_Protocols|web service protocols]].
 
An example of a SOAP message might be (from [http://www.w3.org/TR/2007/REC-soap12-part1-20070427/#firstexample]):
 
<env:Envelope xmlns:env="<nowiki>http://www.w3.org/2003/05/soap-envelope</nowiki>">
  <env:Header>
  <n:alertcontrol xmlns:n="<nowiki>http://example.org/alertcontrol</nowiki>">
    <n:priority>1</n:priority>
    <n:expires>2001-06-22T14:00:00-05:00</n:expires>
  </n:alertcontrol>
  </env:Header>
  <env:Body>
  <m:alert xmlns:m="<nowiki>http://example.org/alert</nowiki>">
    <m:msg>Pick up Mary at school at 2pm</m:msg>
  </m:alert>
  </env:Body>
</env:Envelope>
 


[[Category:Web Services]]
[[Category:Web Services]]