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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Procedure<br />

Name<br />

<strong>Integration</strong> Patterns 85<br />

Table 3.1. An example for RPC <strong>to</strong> retrieve cus<strong>to</strong>mer information<br />

Host: http://165.107.65.25/rpc Port: 8080<br />

get_cus<strong>to</strong>mer_info<br />

I XML-RPC<br />

<br />

Procedure Definition<br />

Input<br />

Request<br />

Output<br />

<br />

XML-RPC Response<br />

Client Server<br />

Figure 3.24. — RPC based on XML messages<br />

Description<br />

For a valid<br />

cus<strong>to</strong>mer_id, the<br />

remote procedure<br />

will return the<br />

details of the<br />

cus<strong>to</strong>mer as a<br />

struct type. The<br />

structure will have<br />

the following<br />

fields:<br />

firstname<br />

lastname<br />

phonenumber<br />

faxnumber<br />

e-mail<br />

sends the results back <strong>to</strong> the client after encoding them as XML<br />

messages. The client then decodes the XML message in<strong>to</strong> standard<br />

language data types and continues on.<br />

As an example, let's consider the same example of a remote call for<br />

retrieving cus<strong>to</strong>mer information with XML-based communication.<br />

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

Saved successfully!

Ooh no, something went wrong!