Product Advertising API Signed Requests Sample Code - C# SOAP

Sample Code & Libraries>Product Advertising API>Product Advertising API Signed Requests Sample Code C# SOAP
Community Contributed Software

  • Amazon Web Services provides links to these packages as a convenience for our customers, but software not authored by an "@AWS" account has not been reviewed or screened by AWS.
  • Please review this software to ensure it meets your needs before using it.

Shows how to send a signed SOAP request to the Product Advertising API (previously Amazon Associates Web Service) using C#.


Submitted By: ProductAdvtAPI@AMZN
AWS Products Used: Amazon Associates Web Service
Language(s): C#
License: Apache License 2.0
Created On: May 7, 2009 5:49 PM GMT
Last Updated: July 8, 2009 2:04 PM GMT

This sample shows how to send a signed ItemLookup request to the Product Advertising API (previously Amazon Associates Web Service) using SOAP in C#. It displays the title of the ASIN provided.

To get started this this sample, extract the contents of the ZIP file and follow the instructions in README.html.

Please post questions and feedback at the Product Advertising API Community Forum.


Just What I Was Looking For
Well written instructions using only generic calls (no Amazon libraries). The other reviewer apparently forgot to install "Web Services Enhancements 3.0" as outlined in the second paragraph. That is what I missed and got the same error. After installing that it worked fine. I did have a little different interface to install the certificate onto my Windows machine ( I was using Windows 7 ) but was able to get it done. Just what I needed to get started...
G. Cummins on October 12, 2010 9:25 PM GMT
It doesnt work for me: Error 6 The type or namespace name 'Web' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?) D:\Data\Visual Studio 2008\Code Snippets\Visual C#\AmazonProductAdvtApiSampleCSharpSoap\Client\src\AmazonProductAdvtApi.cs 22 21 Client any suggestions?
zoidberg123 on August 18, 2009 9:23 AM GMT
This seems to use a non-current Microsoft method of performing requests, and comments looking for more modern samples appear to be going ignored.
wishpot on August 14, 2009 3:32 AM GMT
Simple example that works
Sample works right out of the box. I followed the instructions in the readme.html file and it worked perfectly the first time. Developers will need to do considerable work to turn the sample into something functional, but the sample shows the basic steps needed to retrieve Amazon product information. on August 11, 2009 9:23 PM GMT
to access the Amazon WEB Service with the X509 Certificate file
To Access the Amazon Web Service by SOAP with authentication,using the the x509 Certificate file,we code like this : AWSECommerceService amazon = new AWSECommerceService(); X509Certificate x509 = new X509Certificate(filePath); amazon.ClientCertificates.Add(x509); .... ItemLookup itemlook = new ItemLookup(); itemlook.AWSAccessKeyId = AccessKey;//the user Access key id itemlook.AssociateTag = _TAG; amazon.ItemLookup(itemlook); is that ok ?
cupid148 on July 8, 2009 6:39 AM GMT
We are temporarily not accepting new comments.
©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.