Solved

REST and amazon ecommerce web service

Posted on 2009-05-15
4
298 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:knowlton
  • 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:knowlton
ID: 24402987
There is no ECommerce REST Interface?

This is for S3.

Does it matter?
0
 
LVL 5

Author Comment

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

Author Comment

by: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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

AJAX ModalPopupExtender has a required property "TargetControlID" which may seem to be very confusing to new users. It means the server control that will be extended by the ModalPopup, for instance, if when you click a button, a ModalPopup displays,…
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…
It is a freely distributed piece of software for such tasks as photo retouching, image composition and image authoring. It works on many operating systems, in many languages.
This video explains how to create simple products associated to Magento configurable product and offers fast way of their generation with Store Manager for Magento tool.

758 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

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now