Search code examples
c#wcfsoapamazon-advertising-api

Amazon product advertising API WCF4 Example


I try to get the Amazon PAAPI C# Example to run but my ItemSearchResponse is always null.

What i did:

  1. set my accessKeyId and secretKey in app.config. (VS2012 gives a warning by the way that behavior has a invalid child element signingBehavior?!)
  2. set <xs:element minOccurs="0" maxOccurs="1" name="ImageSets"> in the AWSECommerceService.wsdl
  3. run custom tool on Reverence.svcmap
  4. corrected the namespaces in the Reference.cs
  5. in program.cs: itemSearch.AssociateTag = "myassociateTag-20";

what am i doing wrong? In Fiddler it seems that i am getting the right response to my request. At least i am getting search results in an xml.


Solution

  • the wsdl in the example seems to be not correct.

    i replaced it with the one from

    http://webservices.amazon.com/AWSECommerceService/AWSECommerceService.wsdl

    via copy and paste and did step 2,3 and 4 again. Now it works