Solved

REST and amazon ecommerce web service

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

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
In this Article, I will provide a few tips in problem and solution manner. Opening an ASPX page in Visual studio 2003 is very slow. To make it fast, please do follow below steps:   Open the Solution/Project. Right click the ASPX file to b…
This is my first video review of Microsoft Bookings, I will be doing a part two with a bit more information, but wanted to get this out to you folks.
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…

623 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