18.04.2013 Views

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

B2B Integration : A Practical Guide to Collaborative E-commerce

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

XML Standards for E-business 205<br />

7.6. Simple Object Access Pro<strong>to</strong>col (SOAP)<br />

In order <strong>to</strong> accomplish <strong>B2B</strong>i over the Internet, applications of multiple<br />

trading partners have <strong>to</strong> communicate. In the past, this was accomplished<br />

using distributed component architecture such as CORBA and DCOM.<br />

However, such architecture does not leverage the Internet, as it is based<br />

on remote procedure calls (RPCs), which can cause a substantial security<br />

threat over the Internet and usually the corporate firewalls and proxy<br />

servers block such traffic.<br />

SOAP is ideal for <strong>B2B</strong> applications, since it is an XML-based<br />

pro<strong>to</strong>col for exchange of information over the Internet in a decentralized,<br />

distributed environment.<br />

It consists of three parts: an envelope that defines a framework for<br />

describing what is in a message and how <strong>to</strong> process it, a set of encoding<br />

rules for expressing instances of application-defined datatypes and a<br />

convention for representing remote procedure calls and responses.<br />

7.6.1. SOAP messages<br />

All SOAP messages are encoded using XML. The SOAP message,<br />

essentially an XML document, contains the following XML elements<br />

(see Figure 7.10):<br />

• A SOAP envelope, which is the <strong>to</strong>p element of the XML document<br />

and defines the contents of the message.<br />

• A SOAP header that contains header information. This element is<br />

optional. The header is a generic mechanism for adding features such<br />

Figure 7.10. — Components of a SOAP message

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!