
Web Services and AJAX • 421
Submit a purchase order
In this situation, Web Services makes resources available to submit the purchase order to the customer. The
client creates the PO in required format, say, XML and submits that XML (using the HTTP POST method).
The PO service would take the XML and do the necessary processing. Additionally, it will provide a
URL to the client so that the client can edit the PO in future. This is shown in Figure 9.15.
<?xml version=”1.0”?>
<Purchase_Order>
<Book-Id >00123</Book-Id>
<Customer-Id>ABC</Customer-Id>
<Order-Ref>2007-08-30-A567</Order-Ref>
</Purchase_Order>
Figure 9.15 Actual purchase order
9.2 AJAX
9.2.1 ...