Figure 22-1. Integrating the Amazon T-Shirts department into TShirtShop
The rest of the chapter is divided into two parts. In the first part, you??™ll learn how to access
AWS; in the second part, you??™ll integrate AWS into the TShirtShop web site.
CHAPTER 22 ?– USING AMAZON.COM WEB SERVICES 666
?– Tip The code in this chapter is independent of the rest of the site, so all you need to get started integrating
Amazon.com functionality is the code from the first four chapters (so you have a working product catalog).
Of course, with minor adjustments you can also adapt this code to your own personal solutions.
Accessing the Amazon Web Services
Most service providers (including Amazon.com) use SOAP or REST (or both) to expose web
services to Internet client programs, and you get the same results with both options. In this
chapter, you??™ll learn how to access AWS using both REST and SOAP.
AWS is the generic name Amazon.com uses for its collection of web services. The particular
service we??™re interested in is the Amazon Associates Web Service (A2S, formerly known as
the Amazon E-Commerce Service, or ECS). This web service allows us to query Amazon??™s catalog,
allowing us to obtain product information programmatically. We??™ll use this web service to
retrieve t-shirt product data from Amazon??™s catalog so that we can use that data to form our
Amazon T-Shirts department.
Pages:
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780