Product Advertising API Signed Requests Sample Code - Java SOAP

Sample Code & Libraries>Product Advertising API>Product Advertising API Signed Requests Sample Code Java 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 Java.


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

This sample shows how to send a signed ItemLookup request to the Product Advertising API (previously Amazon Associates Web Service) using SOAP (Axis 1.4) in Java. 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.


trial and failure
Just like my pre-posters here, I cannot get the sample code to work. I tried to work around the FileNotFoundException by downloading the wsdl and pointing the url in the build-file to the wsdl on a local directory. Then, as one of my pre-posters mentioned, the generated code for the client just did not compile (packages did not fit!!). After I got that compiled, the next hindrance was getting it to run. Pretting frustrating...for something that should be easy. Then I tried using axis2 and everything just went downhill from there. Pretty please with sugar on it: Get someone to set up a running sample, with current wsdl and current wsdd-libraries!!! Thanks in advance!
armin3841 on December 17, 2009 9:54 PM GMT
Fails to work anymore
Outdated. Even after updating the WSDL and hunting down the addressing jar, it's failing to import: import; and etc., and I don't know what requires updating at this point.
anuglyboy on December 7, 2009 7:03 PM GMT
Not really useful
Is there an updated example? Please update.
Rajat Garg on November 6, 2009 4:45 AM GMT
Need to do few more changes
If this WSDL didn't work for some reason Use From the WSDL: The sample code SampleItemLookup should change private static final String END_POINT = ""; to private static final String END_POINT = "";
rameshmandaleeka on September 3, 2009 4:13 PM GMT
error building the client directory
Cann't generate the client anymore. Got this error: axis-wsdl2java] Anyone knows where to find the client files for this example?
JUN on September 2, 2009 9:37 PM GMT
I couldn't give it zero
The fact that the auto-gen code produces non-compliant java should have been a clue to the author that perhaps they'd gone down the wrong path.
Will Warren on August 30, 2009 8:56 PM GMT
Outdated and doesn't work
The sample is outdated. The classes don't match the last WSDL. I had to play with de code to get it to work, and I still cannot connect the service: The server sent HTTP status code 400: Bad Request Please, upload a good sample easy to use or ready-to-use libraries.
xmasouzo on August 20, 2009 7:34 PM GMT
Not Working Example
The example is outdated and I can not find the needed library! It would be easier if we have a class like AmazonHmacAssertion in C#.
simbataisa on August 20, 2009 6:53 PM GMT
outdated, complicated - bullshit
I'm not able to run this sample, I always get this error-message: java.lang.ClassNotFoundException: org.apache.axis.message.addressing.handler.AddressingHandler Where do I find this class? Is this in the addressing-1.0.jar? I can't find this file on the web. Why isn't it delivered with the sample-application? The README is referring to version 1.5.4 of the framework, which is not possible to get anymore. With the actual version, I can't find these classes: - AWSECommerceService - AWSECommerceServiceLocator - AWSECommerceServicePortType - ItemLookupRequest - ItemLookup - ItemLookupRequest - ItemLookupResponse - Item This is way to complicated. Why don't you provide a ready-to-use version?
getabstract on August 19, 2009 1:08 PM GMT
We are temporarily not accepting new comments.
©2017, Amazon Web Services, Inc. or its affiliates. All rights reserved.