Solved

REST and amazon ecommerce web service

Posted on 2009-05-15
4
335 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 500 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Problem Hi all,    While many today have fast Internet connection, there are many still who do not, or are connecting through devices with a slower connect, so light web pages and fast load times are still popular.    If your ASP.NET page …
The article shows the basic steps of integrating an HTML theme template into an ASP.NET MVC project
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

752 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