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.

84 <strong>B2B</strong> <strong>Integration</strong> — A <strong>Practical</strong> <strong>Guide</strong> <strong>to</strong> <strong>Collaborative</strong> E-<strong>commerce</strong><br />

RPC Client<br />

Calling<br />

Code<br />

RPC<br />

Interface<br />

Client<br />

Stub<br />

RPC<br />

Runtime<br />

jk %.<br />

Apparent Path of<br />

Procedure Call<br />

•<br />

Apparent Path<br />

of Data<br />

Return Data<br />

Input Arguments<br />

RPC Server<br />

Remote<br />

Procedure<br />

RPC<br />

Interface<br />

Server<br />

Runtime<br />

RPC Runtime<br />

Figure 3.23. — Real and apparent paths of RPC call and data flow<br />

RPC-based integration can either be synchronous or asynchronous in<br />

nature. A synchronous function or method call will hold up the execution<br />

of an application while it awaits a response from the remote method.<br />

As an example, assume that there is a remote procedure for retrieving<br />

cus<strong>to</strong>mer information. The details of the RPC are given in Table 3.1.<br />

XML-based RPCs<br />

<strong>B2B</strong> applications that communicate using RPC can fully leverage XMLbased<br />

technology <strong>to</strong> communicate in a standard way over the Internet<br />

using HTTP. RPCs, based on XML, work by encoding the RPC request<br />

from the client <strong>to</strong> the remote server in an XML message (see Figure 3.24).<br />

The message is then sent over the Internet <strong>to</strong> the server. On receiving<br />

the message, the server decodes it, executes the remote procedure and<br />

A<br />

A<br />

A<br />

A

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

Saved successfully!

Ooh no, something went wrong!