The web service protocols: Difference between revisions

From
Jump to navigation Jump to search
No edit summary
 
No edit summary
Line 1: Line 1:

== SOAP ==
== SOAP ==


Line 12: Line 11:
Originally, SOAP was accomplished to transfer messages via http and therefore take advantage of the internet. (Firewalls and proxi servers normally do not block http traffic via port 80) Nevertheless, SOAP can be used with other protocols such as ftp, smtp as well.
Originally, SOAP was accomplished to transfer messages via http and therefore take advantage of the internet. (Firewalls and proxi servers normally do not block http traffic via port 80) Nevertheless, SOAP can be used with other protocols such as ftp, smtp as well.


'''A SOAP message can be seen as...'''
'''A SOAP message is...'''


* an ordinary XML document, which integrates the SOAP XML Schema by using namespaces.
* an ordinary XML document, which integrates the SOAP XML Schema by using namespaces.

Revision as of 23:41, 24 January 2005

SOAP

SOAP is...

  • the abbreviation for Simple Object Access Protocol

The protocol serves as a distributed object protocol such as RMI or CORBA-IIOP. Thus, whereas RMI is based on the Java platform, and CORBA-IIOP requires the CORBA infrastructure to exchange messages, SOAP is platform and language independent.

  • a standard, proposed to the W3C consortium in May 2000 by companies like Ariba, HQ, IBM, Microsoft
  • an opportunity to support different transport protocols.

Originally, SOAP was accomplished to transfer messages via http and therefore take advantage of the internet. (Firewalls and proxi servers normally do not block http traffic via port 80) Nevertheless, SOAP can be used with other protocols such as ftp, smtp as well.

A SOAP message is...

  • an ordinary XML document, which integrates the SOAP XML Schema by using namespaces.

It consists of three basic elements:

<envelope>: Root, identifies XML documents as a SOAP message

<header>: (optional) infrastructure data

<body>: application data

<?xml version='1.0' encoding='UTF-8'?>
<env:Envelope xmlns:env="http://schemas.xmlsoap.org/soap/envelope/">
<env:Header />
 <env:Body>
   <reservation xmlns="http://www.taxi.com/TaxiReservation">
      <customer>
  	...
      </customer>
   </reservation>
 </env:Body>
</env:Envelope>