Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8453467
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T11:46:55+00:00 2026-06-10T11:46:55+00:00

I want to search for a product using the Amazon Product Advertising API. I

  • 0

I want to search for a product using the Amazon Product Advertising API.

I have started taking the Java example code to do a search for a product (com.advertising.api.sample).

Compiles and runs fine, but gives a Null Pointer Exception as the parsing of the response assumes everything will work OK (that’s OK for a sample).

So, I do the same query using ‘curl’….

curl http://ecs.amazonaws.com/onca/xml?AWSAccessKeyId=&ItemId=0545010225&Operation=ItemLookup&ResponseGroup=Small&Service=AWSECommerceService&Timestamp=2012-08-30T11%3A31%3A54Z&Version=2009-03-31&Signature=

which shows this output:

[1] 17603
[2] 17604
[3] 17605
[4] 17606
[5] 17607
[6] 17608
[7] 17609
[2] Done ItemId=0545010225
[3] Done Operation=ItemLookup
[4] Done ResponseGroup=Small
[5] Done Service=AWSECommerceService
[6] Done Timestamp=2012-08-30T11%3A31%3A54Z
[7] Done Version=2009-03-31

and the XML returns describes the error:

AWS.MissingServiceParameterYour request is missing the Service parameter. Please add the Service parameter

But, as you can see from the curl command input and it’s logging, the service parameter is present and set to: AWSECommerceService as specified by the API

I realize I maybe doing something wrong, but it doesn’t seem to be the Service parameter, and it’s going to be tough to find the source of another problem with that error response.

Any ideas?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-10T11:46:57+00:00Added an answer on June 10, 2026 at 11:46 am

    Interestingly, if I do the same request from browser, I get a different response:
    (abbreviated)

    Your request is missing required parameters. Required parameters include AssociateTag.

    So, you need to modify the Java REST Example code to include the mandatory “AssociateTag” parameter in the request. I did this modifying the SignedRequestHelper class.

    Then it works, and you get the response expected.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have integrated Amazon Product Search using the widgets they provide within my website.
I want to build a product-search engine. I was thinking of using google-site-search but
I have recently started using google places api and am a big noob on
I'm using NHibernate Search for NHibernate 3.0 GA. I have this code in my
I am using the Amazon Product Search WSDL in an objective-c project. Since Objective-c
I am using lucene to search in the address book like product. I want
For example, the users of our app want to search products by entering a
I want to search a text in a table without knowing its attributes. Example
Using Codeigniter, I have a controller function name search that takes in parameters state
I have a problem with using elastic search at the moment. When I try

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.