Solved

REST and amazon ecommerce web service

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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Lots of people ask this question on how to extend the “MembershipProvider” to make use of custom authentication like using existing database or make use of some other way of authentication. Many blogs show you how to extend the membership provider c…
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 …
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
Hi friends,  in this video  I'll show you how new windows 10 user can learn the using of windows 10. Thank you.

867 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

16 Experts available now in Live!

Get 1:1 Help Now