Sample Amazon Associates Store using Java

Sample Code & Libraries>Sample Amazon Associates Store using Java
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.

A sample application that illustrates how to build an basic storefront using Amazon Associates Web Service, Java and SOAP.

Details

Submitted By: Satyen@AWS
AWS Products Used: Amazon Associates Web Service
Language(s): Java
License: Apache License 2.0
Created On: June 22, 2007 3:49 PM GMT
Last Updated: September 21, 2008 9:29 PM GMT
Download

About This Sample

This sample application is built on Amazon Associates Web Service using Java technology. XFire is used to generate the Java proxy classes and Java Server Faces are used for the UI component. The sample code illustrates how to construct a SOAP request for various Amazon Associates Web Service operations like ItemSearch, ItemLookup, etc. with various request parameter combinations, then shows how to process the response that comes back from Amazon Associates Web Service.

The sample application is based on the 2007-04-04 API version of Amazon Associates Web Service.

Prerequisites

  1. You must have a valid Amazon Web Services developer account
  2. Please see the README file ( Word , PDF ) for other prerequisites and configuration details. (The sample comes with all the necessary JARs.)
  3. Eclipse is used to build this sample - if you don't have Eclipse, you can download it from the Eclipse web site.

Running the Sample

  1. Download and unzip the .zip file in your local directory (C:\)
  2. Follow the instructions in the README file to run the sample

Comments

No example present
The example is no longer here.
M. Campbell on October 11, 2010 8:16 PM GMT
Where is Product Advertising API?
Where is hidden that API? I cannot find it.
mvezelis on October 9, 2010 6:55 PM GMT
Where to download this API?
For god sake can anyone please tell me from where I can download/get this api?
egauravjain on August 14, 2010 9:12 PM GMT
my trouble
to whom that may concern, could anybody tell me how to customize this java web project so that i could search dvd movies with spanish sound in germany (under amazon.de)? kind regards, wez.
wezburmeister on September 30, 2008 7:45 PM GMT
I get errors running this application
Hi, This is a great article. However I get the following stack trace: type Exception report message description The server encountered an internal error () that prevented it from fulfilling this request. exception org.apache.jasper.JasperException: Exception in JSP: /pages/itemSearchResults.jsp:14 11: 12: 13: 14: 15: 16: 17: Stacktrace: org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:504) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:375) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) root cause javax.servlet.ServletException: javax.servlet.jsp.el.ELException: An error occurred while getting property "searchResponse" from an instance of class com.amazon.webservices.awsecommerceservice.Wrapper.ItemSearchBean org.apache.jasper.runtime.PageContextImpl.doHandlePageException(PageContextImpl.java:854) org.apache.jasper.runtime.PageContextImpl.handlePageException(PageContextImpl.java:791) org.apache.jsp.pages.itemSearchResults_jsp._jspService(itemSearchResults_jsp.java:82) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) root cause java.lang.NoClassDefFoundError com.amazon.webservices.awsecommerceservice.Wrapper.ItemSearchBean.doRequest(ItemSearchBean.java:131) com.amazon.webservices.awsecommerceservice.Wrapper.ItemSearchBean.getSearchResponse(ItemSearchBean.java:160) sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) java.lang.reflect.Method.invoke(Method.java:585) org.apache.commons.el.ArraySuffix.evaluate(ArraySuffix.java:314) org.apache.commons.el.ComplexValue.evaluate(ComplexValue.java:145) org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:263) org.apache.commons.el.ExpressionEvaluatorImpl.evaluate(ExpressionEvaluatorImpl.java:190) org.apache.jasper.runtime.PageContextImpl.proprietaryEvaluate(PageContextImpl.java:932) org.apache.jsp.pages.itemSearchResults_jsp._jspx_meth_ecs_search_0(itemSearchResults_jsp.java:139) org.apache.jsp.pages.itemSearchResults_jsp._jspx_meth_f_view_0(itemSearchResults_jsp.java:109) org.apache.jsp.pages.itemSearchResults_jsp._jspService(itemSearchResults_jsp.java:71) org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:97) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:332) org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:314) org.apache.jasper.servlet.JspServlet.service(JspServlet.java:264) javax.servlet.http.HttpServlet.service(HttpServlet.java:802) com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:322) com.sun.faces.application.ViewHandlerImpl.renderView(ViewHandlerImpl.java:130) com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:87) com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:200) com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:117) javax.faces.webapp.FacesServlet.service(FacesServlet.java:198) note The full stack trace of the root cause is available in the Apache Tomcat/5.5.17 logs.
ibuchh on February 18, 2008 12:06 PM GMT
We are temporarily not accepting new comments.
©2014, Amazon Web Services, Inc. or its affiliates. All rights reserved.