Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

REST and amazon ecommerce web service

Posted on 2009-05-15
4
Medium Priority
?
347 Views
Last Modified: 2012-05-07
If I paste the following into a URL:

http://webservices.amazon.com/onca/xml?Service=AWSECommerceService&AWSAccessKeyId=AKIAJGNPAX3WUT652ZDQ&Operation=ItemSearch&ItemId=9780321321831&SearchIndex=Books&ResponseGroup=Large&Keywords=9780321321831

what gets returned is an XML document with the information desired.


That's fine.


But what I am trying to figure-out how to do is the EXACT SAME THING in the C# code behind.


Can anyone help me?

Please provide sample (  C# !!!!  )  source code.

I also need someone to help me debug.
0
Comment
Question by:Tom Knowlton
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 3
4 Comments
 
LVL 12

Accepted Solution

by:
techExtreme earned 2000 total points
ID: 24401237
Hi, this library should get you started for using amazon services in c# application.
Amazon S3 Library for REST in C#
url: http://developer.amazonwebservices.com/connect/entry.jspa?externalID=130
Download the library and you can start coding for amazon web services in c#.


0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 24402987
There is no ECommerce REST Interface?

This is for S3.

Does it matter?
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 24403026
Can you provide some sample code I could use?
0
 
LVL 5

Author Comment

by:Tom Knowlton
ID: 24404560
Here was my eventual solution:

    private void GetBookInfoFromAmazon(string ISBN)
    {
      AmazonECommerceService.ItemSearch iSearch = new AmazonECommerceService.ItemSearch();

      iSearch.AWSAccessKeyId = "AKIAJGNPAX3WUT652ZDQ";

      AmazonECommerceService.AWSECommerceServicePortTypeClient aecs = new AmazonECommerceService.AWSECommerceServicePortTypeClient();

      AmazonECommerceService.ItemSearchResponse isr = new NOTLWONK.AmazonECommerceService.ItemSearchResponse();

      AmazonECommerceService.ItemSearchRequest isreq = new NOTLWONK.AmazonECommerceService.ItemSearchRequest();

      isreq.SearchIndex = "Books";
      isreq.Keywords = ISBN;

      string[] rg = { "Large" };
      isreq.ResponseGroup = rg;

      iSearch.Request = new AmazonECommerceService.ItemSearchRequest[] { isreq };

      isr = aecs.ItemSearch(iSearch);
    }
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

I recently went through the process of creating a Calendar Control of events with the basis of using a database to keep track of the dates that are selectable, one requirement was to have the selected date pop-up in a simple lightbox.  At first this…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
Video by: ITPro.TV
In this episode Don builds upon the troubleshooting techniques by demonstrating how to properly monitor a vSphere deployment to detect problems before they occur. He begins the show using tools found within the vSphere suite as ends the show demonst…
In this video, Percona Director of Solution Engineering Jon Tobin discusses the function and features of Percona Server for MongoDB. How Percona can help Percona can help you determine if Percona Server for MongoDB is the right solution for …

722 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question