codetoad.com
  ASP Shopping CartForum & BBS
  - all for $20 from CodeToad Plus!
  
  Home || ASP | ASP.Net | C++/C# | DHTML | HTML | Java | Javascript | Perl | VB | XML || CodeToad Plus! || Forums || RAM 
Search Site:



Amazon Lite Web Service

Article by: kokogiak.com (9/12/2002)
Bookmark us now! Add to Favourites
Email a friend!Tell a friend
Sponsored by: Neil Matthews Hypnotherapy, Wilmslow
Summary: A complete XML web service allowing you to offer complete Amazon searches and disaply results on your site. A fantastic introduction to XML Web Services.
Viewed: 16310 times Rating (8 votes): 
 4 out of 5
 Rate this Article  Read Comments  Post Comments

Amazon Lite Web Service



View Online Demo

Amazon Light is an Amazon.com Webservices Application.

This means that it is a web-based application built on Amazon.com's XML API, built and hosted by Kokogiak Media. Or, more basically, Amazon.com is providing the data via XML, and Amazon Light is presenting it in a new way.

Amazon Light was laid out to be simple and efficient - since, frankly speaking, shopping at Amazon.com can often be anything but simple or efficient.

Through Amazon.com's Webservices API. Amazon.com has opened up their catalog via XML over HTTP and the SOAP protocol. Amazon Light is done through ASP and VBScript, using XMLHTTP and ResponseXML objects to retrieve Amazon.com's XML over HTTP on IIS5.0. That's a mouthful, and ugly to read as well, so here's what happens -> the IIS server has an object that allows one to fetch a document to the server over the web, like a browser fetching an HTML document to your desktop. In this case, we're fetching a special XML document provided by Amazon.com, and treating it much like a small database, grabbing the important information and putting it all together on the server to serve up as HTML to the end user. If that's still not helpful, here's the code for the home page, results page, and the details page - basically the bulk of Amazon.com served through three files.

The entire work of the Service is done by three files. Firstly, the home page default.asp :

Select All Code


Next we need a page to display the results (results.asp):

Select All Code


and finally, a page to display the product detail. Yes, AmazonLite even goes as far as pulling secondary detail pages from the Amazon API. This page is called detpage.asp

Select All Code


Can I reuse this code?

Yes, by all means, go and reuse this as you wish - just be sure to credit the source, Kokogiak Media (http://www.kokogiak.com). You will need to obtain your own developer's token from Amazon.com though, if you want credit for your own traffic.




CodeToad Experts

Can't find the answer?
Our Site experts are answering questions for free in the CodeToad forums
Rate this article:     Poor Excellent
View highlighted Comments
User Comments on 'Amazon Lite Web Service'
Posted by :  Archive Import (Nancy) at 23:02 on Sunday, September 15, 2002
This is probably a great tool, if I only knew exactly WHAT to do with it!
I put the three pages of code onto my notepad and saved in ASP, it imediately was on my Macromedia- h-m-m , I'm a novice- just what do I do with it now?
I'm learning all this webby stuff hit and miss, jumping from this to that- what I need is a turorial on how to put together the Amazon pages- any suggestions?

Thank you for sharing this code with us!
Posted by :  Archive Import (Ned) at 18:56 on Monday, September 16, 2002
What is the way to incorporate developer's token from Amazon.com if we already have one?
Thanks.
Posted by :  David Bruce at 01:33 on Tuesday, September 17, 2002
Simply replace all occurrences of the D2K5NRCH4E5I96 string with your own token and replace codetoad-20 with your Amazon ID. These are found in both the results.asp page and the detpage.asp
Posted by :  Archive Import (orlando) at 09:30 on Tuesday, October 01, 2002
Dear Nancy:
I don't know if you already solved your problem, but I'll tell you what to do to run asp on your computer. First you better be using windows 2000.

How to install IIS and run ASP on Windows 2000

From your Start Button, go to Settings, and Control Panel
In the Control Panel window select Add/Remove Programs
In the Add/Remove window select Add/Remove Windows Components
In the Wizard window check Internet Information Services, click OK
An Inetpub folder will be created on your harddrive
Open the Inetpub folder, and find a folder named wwwroot
Create a new folder, like "MyWeb", under wwwroot.
Use a text editor to write some ASP code, save the file as "test1.asp" in the "MyWeb" folder
Make sure your Web server is running
Open your browser and type in "http://localhost/MyWeb/test1.asp", to view your first ASP page

And that's it!!
Take care.
Orlando
Posted by :  Archive Import (Nadeem Azam) at 23:19 on Sunday, November 17, 2002
Thank you Orlando. Very helpful.

And how do we incorporate it into our websites please? :)

Sorry, but we're not all experts here. Thank you.
Posted by :  Archive Import (ray) at 18:32 on Monday, December 23, 2002
I am interested in the part where the xml is accessed. could you highlight
the part of the code where xml is presenting the data?
Posted by :  Archive Import (Mac) at 21:41 on Tuesday, January 07, 2003
I have never looked at the Amazon XML API, but the code above uses classic ASP to walk the tree in XML( i was wanting to use the word p*rse but it said it was illegal, go figure). If you wanted something a lot better, look into XSL for the transformations. I know that my XML API uses XML over HTTP (where the xml request is actually 'piggybacking' on a HTTP request). Nancy, what you will have to have is a server i.e. windows with IIS 5.0 or higher, or a *nix server with Chili!soft installed to run ASP scripts.
Posted by :  Archive Import (Nadeem) at 20:25 on Sunday, February 23, 2003
Thank you Orlando for your step-by-step instruction! Very kind of you.

Nadeem
Posted by :  Archive Import (Nadeem) at 23:17 on Sunday, February 23, 2003
Sorry, but I am not an expert with ASP. Never used it before!

I have one other question: can this script be used with a Unix web host or must it be Microsoft?

Thank you Orlando/anyone else :)
Posted by :  Archive Import (Marcus) at 14:37 on Thursday, April 10, 2003
ASP must be run using a Microsoft server (ex. IIS).

UNIX hosts allow for greater use CGI and PHP scripting.
Posted by :  Archive Import (Brian) at 23:15 on Tuesday, May 20, 2003
This is GREAT! I just had to copy, paste, and run it on my webserver. Is this OK with Amazon using their database and files like this? I love it.
Brian
Posted by :  Archive Import (david) at 13:17 on Thursday, May 22, 2003
Brian - they're absolutely ok with it - it encourages more sales from them and it uses their web service application.
Posted by :  Hope at 14:53 on Friday, August 27, 2004
Hello,
I'm very interested in the Amazon Light Web Service. I am a new Amazon Associate and have yet to start building my site and store. I came across Amazon Light and fell in love. I have a few questions and wonder who I can direct them to (if not here)? They are as follows:

Are full 15% commissions paid to those using Amazon Light?

If several items are deposited in the AL Wish List and then transferred to Amazon's cart, are full commissions paid for all items deposited?

Can the "look" Amazon Light be altered to match my site colors/themes?

Can I use this service for more than one web site?

Thank you so much!

Hope
Posted by :  vinforum at 04:00 on Friday, December 15, 2006
[b]very useful[/b]


To post comments you need to become a member. If you are already a member, please log in .

 











Recent Forum Threads
• I Need Help
• User input validation
• Create a wrapper for a COM Dll
• HashMaps
• HashMaps
• NEED HELP! Urgent
• Re: Exciting Open Source Project in C++
• Re: The Ballarat Airline Company (BAC)
• Re: problem getting prompt window to work on IE


Recent Articles
ASP GetTempName
Decode and Encode UTF-8
ASP GetFile
ASP FolderExists
ASP FileExists
ASP OpenTextFile
ASP FilesystemObject
ASP CreateFolder
ASP CreateTextFile
Javascript Get Selected Text


© Copyright codetoad.com 2001-2008