Amazon Ecommerce Service Web Services

Amazon Ecommerce Service Web Services PowerPoint PPT Presentation


  • 197 Views
  • Uploaded on
  • Presentation posted in: General

Table of Contents. MotivationAmazon E-Commerce Service (ECS)?What is ECS?How to use?Summary. 1. Motivation. Existing Web services (Amazon, Google, Yahoo, More . ) Examples of connecting to Web services.Topic 1: Amazon's Web Service (ECS). 2. Amazon E-Commerce Service (ECS). Web Service -

Download Presentation

Amazon Ecommerce Service Web Services

An Image/Link below is provided (as is) to download presentation

Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.


- - - - - - - - - - - - - - - - - - - - - - - - - - E N D - - - - - - - - - - - - - - - - - - - - - - - - - -

Presentation Transcript


1. Amazon Ecommerce Service Web Services CSV888–Dept. of CSE Sept. 2008 Dr. Subhash Bhalla, Visiting Faculty Today, I will be talking about “Practical Side of Web Services”.Today, I will be talking about “Practical Side of Web Services”.

2. Table of Contents Motivation Amazon E-Commerce Service (ECS)? What is ECS? How to use? Summary These are contents.These are contents.

3. 1. Motivation Existing Web services (Amazon, Google, Yahoo, More . ) Examples of connecting to Web services. Topic 1: Amazon’s Web Service (ECS) Before getting into main subject, let me talk about motivation. During this seminar, I would like to investigate existing Web services and introduce them by showing actual examples so that we can understand practical side of Web services. Today’s topic is Amazon’s Web Service, ECS. Before getting into main subject, let me talk about motivation. During this seminar, I would like to investigate existing Web services and introduce them by showing actual examples so that we can understand practical side of Web services. Today’s topic is Amazon’s Web Service, ECS.

4. 2. Amazon E-Commerce Service (ECS) Web Service -> can retrieve goods (Books, DVD, Software, Toys, more . ) information provided by Amazon.com ECS is now used in 6 countries: USA, UK, Germany, Japan, France,Canada What is ECS? ECS is a web service published by Amazon.com. ECS is now used in 6 countries, USA, UK, Germany, Japan, France and Canada. ECS allows users to retrieve goods information provided by Amazon.What is ECS? ECS is a web service published by Amazon.com. ECS is now used in 6 countries, USA, UK, Germany, Japan, France and Canada. ECS allows users to retrieve goods information provided by Amazon.

5. 2-1. Two ways for using ECS REST [2] ? Used this time Request: URL + Parameter Response: XML/HTML SOAP Request: SOAP (XML) Response: SOAP (XML) There are two ways for using ECS. One is using REST. REST is short for Representational State Transfer. The main idea of REST is to use URL for request message. In this presentation, REST will be used because of its simplicity. The other is using SOAP. I plan to talk about this next week. So here, just keep in mind that there are two ways for using ECS. There are two ways for using ECS. One is using REST. REST is short for Representational State Transfer. The main idea of REST is to use URL for request message. In this presentation, REST will be used because of its simplicity. The other is using SOAP. I plan to talk about this next week. So here, just keep in mind that there are two ways for using ECS.

6. 2-2. Access Key ID Acquisition Visit the following site to get “Access Key ID” https://aws-portal.amazon.com/gp/aws/developer/registration/index.html You will receive an email that A.K.ID is attached You will be able to get A.K.ID Example (mine): 0HT4JR7X5STKFMNT3YR2 How to use ECS? First of all, you need to get Access Key ID to use ECS. The Access Key ID can be got by registering in the following site. After that, you will receive an email. Then, you will be able to use ECS with your Access Key ID. How to use ECS? First of all, you need to get Access Key ID to use ECS. The Access Key ID can be got by registering in the following site. After that, you will receive an email. Then, you will be able to use ECS with your Access Key ID.

7. 2-3. Request Message Composition http://webservices.amazon.com/onca/xml? Service=AWSECommerceService& ?Use ECS (fixed) Operation=ItemSearch& ? Search Goods Information SubscriptionId=0HT4JR7X5STKFMNT3YR2& ?A. K. ID SearchIndex=Books& ? Search Target Keywords=GRID& ? Keyword ContentType=text/xml ? Output format (XML) ? Linefeed must be eliminated when you use this. If you use REST for request, you do not necessarily write a program. Just open your browser and type a URL by specifying some parameters one by one like following. Service parameter and SubscriptionId parameter are always fixed because these two parameters are absolutely necessary to use ECS. The others have some variation. By using this request message, book information about GRID can be displayed on your browser in XML format. If you use REST for request, you do not necessarily write a program. Just open your browser and type a URL by specifying some parameters one by one like following. Service parameter and SubscriptionId parameter are always fixed because these two parameters are absolutely necessary to use ECS. The others have some variation. By using this request message, book information about GRID can be displayed on your browser in XML format.

8. 2-4. Response Message Example Here is an example of Response Message. As you can see, a response message is simple XML. This is the advantage of using REST. Unlike SOAP, there is no additional information such as transfer protocol in a response message. So, it’s easy to use for programmers.Here is an example of Response Message. As you can see, a response message is simple XML. This is the advantage of using REST. Unlike SOAP, there is no additional information such as transfer protocol in a response message. So, it’s easy to use for programmers.

9. 2-5. Request Parameters (1) http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&Operation=? Now let’s check request parameter details one by one. The first one is Operation. Operation specifies what to do. The most frequently used value is ItemSearch which is for searching goods information.Now let’s check request parameter details one by one. The first one is Operation. Operation specifies what to do. The most frequently used value is ItemSearch which is for searching goods information.

10. 2-5. Request Parameters (2) http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&Operation=ItemSearch&SubscriptionId=0HT4JR7X5STKFMNT3YR2&SearchIndex=? The second one is SearchIndex. SearchIndex specifies what to search. When you specify Blended, all goods information is targeted. The second one is SearchIndex. SearchIndex specifies what to search. When you specify Blended, all goods information is targeted.

11. 2-5. Request Parameters (3) http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&Operation=ItemSearch&SubscriptionId=0HT4JR7X5STKFMNT3YR2&SearchIndex=Books&Keywords=GRID&ContentType=? The next one is ContentType. ContentType specifies response message format. Either XML or HTML can be specified.The next one is ContentType. ContentType specifies response message format. Either XML or HTML can be specified.

12. 2-5. Request Parameters (4) http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&Operation=ItemSearch&SubscriptionId=0HT4JR7X5STKFMNT3YR2&SearchIndex=Books&Keywords=GRID&ContentType=text/xml&ResponseGroup=?,?,?... The last one is RequestGroup. RequestGroup specifies what you need for response. For example, if you specify Images, URL of goods image is described in a response XML message. All of these values can be specified at the same time by separating by comma.The last one is RequestGroup. RequestGroup specifies what you need for response. For example, if you specify Images, URL of goods image is described in a response XML message. All of these values can be specified at the same time by separating by comma.

13. 3. Summary Amazon’s Web Service can be used by specifying URL. Exercise (please try later) ECS using SOAP Now let me summarize my talk. As you can see here, it is not so difficult to use ECS. If you use REST, you just have to specify URL with some parameters and your own Access Key ID. So, please try if are interested. In the next week, I will talk about ECS using SOAP.Now let me summarize my talk. As you can see here, it is not so difficult to use ECS. If you use REST, you just have to specify URL with some parameters and your own Access Key ID. So, please try if are interested. In the next week, I will talk about ECS using SOAP.

14. 2-2. Products provided by Amazon.co.jp Japanese Books (Slide #) English Books Electric appliance Consumer electronics Music CD VHS DVD Software Toys Video games Japanese Amazon deals in various products, but all of these product information can be retrieved by using ECS.Japanese Amazon deals in various products, but all of these product information can be retrieved by using ECS.

15. 3-1. REST vs. SOAP (1) The advantages of using REST Easy to build (no toolkits required) Lightweight (no extra information described) The disadvantages of using REST Only HTTP can be used. Secure messaging is not established. By the way, what is the advantages and disadvantages of REST and SOAP? The advantage of using REST is that it is easy to build. No toolkits required. In addition, it is lightweight. No additional information such as transfer protocol information is described in request and response message. The disadvantage of using REST is that only HTTP can be applied for communication. In addition, secure messaging is not established. There is no standard.By the way, what is the advantages and disadvantages of REST and SOAP? The advantage of using REST is that it is easy to build. No toolkits required. In addition, it is lightweight. No additional information such as transfer protocol information is described in request and response message. The disadvantage of using REST is that only HTTP can be applied for communication. In addition, secure messaging is not established. There is no standard.

16. 3-2. REST vs. SOAP (2) The advantages of using SOAP Several protocols can be applied. (HTTP, FTP, SMTP, etc.) Secure messaging (an XML is enveloped) The disadvantages of using SOAP Difficult to use (Require toolkits) The advantages of using SOAP is that several protocols can be applied for communication. HTTP, FTP, SMTP and so on. In addition, secure messaging is possible. In fact, the security for SOAP is standardized as Web Service Security in 2004. The disadvantage is that it is difficult to use. As I mentioned before, WSDL analysis is required. Especially, amazon’s WSDL is highly nested, so it is difficult for developers to utilize SOAP based ECS.The advantages of using SOAP is that several protocols can be applied for communication. HTTP, FTP, SMTP and so on. In addition, secure messaging is possible. In fact, the security for SOAP is standardized as Web Service Security in 2004. The disadvantage is that it is difficult to use. As I mentioned before, WSDL analysis is required. Especially, amazon’s WSDL is highly nested, so it is difficult for developers to utilize SOAP based ECS.

17. 4. Summary ECS can be implemented by two ways: REST and SOAP ECS allows users to retrieve product information provided by Amazon. Now let me summarize my talk. We learned there are two ways for using ECS. One is the way of using REST and the other is using SOAP. Also we learned ECS allows users to retrieve product information. The most popular application of ECS is an affiliate program. Suppose you create a new service using ECS and publish it on the Internet. If a book is bought by someone through your service, then you will be able to receive referral fee from Amazon. ECS is great system. In the next week, I will talk about Yahoo Search Web Service. Yahoo’s web service provide several search functions such as web search and image search. I will introduce them next time.Now let me summarize my talk. We learned there are two ways for using ECS. One is the way of using REST and the other is using SOAP. Also we learned ECS allows users to retrieve product information. The most popular application of ECS is an affiliate program. Suppose you create a new service using ECS and publish it on the Internet. If a book is bought by someone through your service, then you will be able to receive referral fee from Amazon. ECS is great system. In the next week, I will talk about Yahoo Search Web Service. Yahoo’s web service provide several search functions such as web search and image search. I will introduce them next time.

18. Table of Contents Development Environment Building Google AJAX Search API Amazon E-Commerce Service Yahoo! Web Service How to integrate? Summary In this presentation, I would like to introduce three Web Service and explain how to use them. Also, I will talk about how to integrate Web Services. Finally, I will make a brief summary.In this presentation, I would like to introduce three Web Service and explain how to use them. Also, I will talk about how to integrate Web Services. Finally, I will make a brief summary.

19. 1. Development Environment Windows 2000/XP Apache 2.0.5 PHP 5.1.4 For using Amazon and Yahoo Web Service JavaScript For using Google Web Service First, let me define development environment. Operating System use Windows 2000/XP. Web server is Apache. Programming languages are PHP and JavaScript. PHP is for implementing Amazon and Yahoo Web Service. JavaScript is for implementing Google Web Service.First, let me define development environment. Operating System use Windows 2000/XP. Web server is Apache. Programming languages are PHP and JavaScript. PHP is for implementing Amazon and Yahoo Web Service. JavaScript is for implementing Google Web Service.

20. Install Flow Install Apache 2.0.5 http://httpd.apache.org/ Install PHP 5.1.4 http://www.php.net/downloads.php Modify php.ini This is initialize setup for PHP. This setting makes a program access WSDL file from your computer or standardize character encoding. C:\WINNT\php.ini (This is Windows 2000 case) Install flow is here. I would like to skip details.Install flow is here. I would like to skip details.

21. 2. Google AJAX Search API Google AJAX Search API is a JavaScript library that allows users to embed Google Search in web pages or web applications. Google AJAX Search API provides Web Search Local Search Video Search Blog Search News Search Book Search. Now, I would like to talk about Google AJAX Search API. Google AJAX Search API is a JavaScript library that allows you to embed Google Search in web pages. Google AJAX Search API provides web search, locl search, video search, blog search and book search functions. Now, I would like to talk about Google AJAX Search API. Google AJAX Search API is a JavaScript library that allows you to embed Google Search in web pages. Google AJAX Search API provides web search, locl search, video search, blog search and book search functions.

22. More details Yahoo! Developer Network (USA) :http://developer.yahoo.com/ Yahoo! Developer Network (Japan) :http://developer.yahoo.co.jp/ Tutorial for web search, image search, movie search and some other service is available. Also, sample codes for other programming language such as JavaScript and Python are available. As for more details picture such as what kind of parameters are available and how the XML response structure, please look for Yahoo! Developer Network. This page provides tutorial for web search, image search, movie search and some other services. Also, sample codes using other programming language such as JavaScript and Python are available.As for more details picture such as what kind of parameters are available and how the XML response structure, please look for Yahoo! Developer Network. This page provides tutorial for web search, image search, movie search and some other services. Also, sample codes using other programming language such as JavaScript and Python are available.

23. 4. Amazon E-Commerce Service Amazon E-Commerce Service enables users to retrieve product information provided by Amazon.com Product information includes: Japanese Books English Books Electric appliance Consumer electronics Music CD VHS DVD Software Toys Video games, etc. Now I would like to introduce Amazon Web Service. Amazon Web Service enables users to retrieve product information provided by Amazon.com. Product information includes books, electric appliance, consumer electronics, music CD, VHS, DVD software, toys video games and so on. Now I would like to introduce Amazon Web Service. Amazon Web Service enables users to retrieve product information provided by Amazon.com. Product information includes books, electric appliance, consumer electronics, music CD, VHS, DVD software, toys video games and so on.

24. Overview This is overview of how Amazon Web Service works. First, a user or other system queries to a client program. Then, the client program create SOAP request to Amazon Web Service. After that, the client program receives SOAP response and convert it into HTML format. Finally, the user receives HTML response. This is overview of how Amazon Web Service works. First, a user or other system queries to a client program. Then, the client program create SOAP request to Amazon Web Service. After that, the client program receives SOAP response and convert it into HTML format. Finally, the user receives HTML response.

25. This is a picture of execution results of sample codes.This is a picture of execution results of sample codes.

26. More details Amazon Web Services Developer Connection: http://developer.amazonwebservices.com/connect/index.jspa Tutorial for Amazon Web Service is available. Many solutions using Amazon Web Service is introduced. As for more details picture such as what kind of parameters are available, please see Amazon Web Services Developer Connection. In this site, tutorial for Amazon Web Service is available. Also, many solutions using Amazon Web Service is being introduced. So, if you are interested, please check this site. As for more details picture such as what kind of parameters are available, please see Amazon Web Services Developer Connection. In this site, tutorial for Amazon Web Service is available. Also, many solutions using Amazon Web Service is being introduced. So, if you are interested, please check this site.

27. 5. How to integrate? Now, I would like to talk about how to integrate Web Services. This is basic picture of Web Service integration. As I mentioned before, each Web Service can be implemented by PHP scripts or JavaScript. All you have to do to integrate these Web Services is to create like from one PHP script file to another or include JavaScript into a PHP script.Now, I would like to talk about how to integrate Web Services. This is basic picture of Web Service integration. As I mentioned before, each Web Service can be implemented by PHP scripts or JavaScript. All you have to do to integrate these Web Services is to create like from one PHP script file to another or include JavaScript into a PHP script.

28. 6. Summary Google AJAX Search API can be described in simple JavaScript, so it is good starting point of using Web Service. Amazon and Yahoo Web Service can be described in PHP scripts. Coordination of these scripts makes it possible to integrate Web Services. Now, let me summarize my talk. In this presentation, I introduced three Web Services. They were Google AJAX Search API, Yahoo Search Web Service and Amazon E-Commerce Service. Google AJAX Search API can be described in simple JavaScript, so it is good starting point of using Web Service. Amazon and Yahoo Web Service can be described in PHP scripts. Also, coordination of these scripts makes it possible to integrate Web Services. Thank you for listening.Now, let me summarize my talk. In this presentation, I introduced three Web Services. They were Google AJAX Search API, Yahoo Search Web Service and Amazon E-Commerce Service. Google AJAX Search API can be described in simple JavaScript, so it is good starting point of using Web Service. Amazon and Yahoo Web Service can be described in PHP scripts. Also, coordination of these scripts makes it possible to integrate Web Services. Thank you for listening.

  • Login