Visual Studio Development Bookmark and Share   
 index > Visual Basic Express Edition > Amazon Enabled Movie collection starter Kit
 

Amazon Enabled Movie collection starter Kit

Hi,
Just downloaded the Amazon Movie Collection and installed the same.
Also followed all instructions about modifying the xsd file and the size of the fields in the database.
Aslo got my Amazon key and updated it in the settings file :Properties.Settings.Default.AmazonSubscriptionId

However I still get an error and am unable to search amazon for a movie.
The error I get is :
"The Request must Contain the Parameter Signature "

Not sure what a parameter signature is .
Pl help.

C# version using Visual Studio 2008.


C# beginer
dezkev  Monday, October 12, 2009 10:18 AM

Hi dezkev

We previously announced that by August 15, 2009, the Product Advertising API will require all requests to be authenticated using request signatures. Many of you have already implemented signed requests or are in the process of implementing it, and we thank you for your timely cooperation.

Please look this thread or more information. :

http://developer.amazonwebservices.com/connect/ann.jspa?annID=444


http://flyingpies.wordpress.com/2009/08/01/17/


Step 1 – Create a sample console application
In Visual Studio 2008, select New/Project… from the File menu.
Select Console Application from Visual C#/Windows, and enter the application’s name.
Click OK

Visual Studio creates a new console application. So far, this isn’t different than any other console app.

Step 2 – Add a web service reference
In the Solution Explorer view, right click References, then select Add Service Reference…
.

Step 3 – Add code to access the Product Advertising API.
You could update your program as follows to have it connect to the product advertising API and search for books with “WCF” in their title. Make sure to add a using statement to reference the namespace you chose for the service in step 2.


Step 4 — Add the authentication code
Step 5 – Make the Amazon ECS client authenticate
Finally, to make our Amazon ECS client actually authenticate its requests, modify the main() method as follows:

// create a WCF Amazon ECS client
AWSECommerceServicePortTypeClient client = new AWSECommerceServicePortTypeClient(
new BasicHttpBinding(BasicHttpSecurityMode.Transport),
new EndpointAddress(”https://webservices.amazon.com/onca/soap?Service=AWSECommerceService”));

// add authentication to the ECS client
client.ChannelFactory.Endpoint.Behaviors.Add(new AmazonSigningEndpointBehavior(”ItemSearch”, accessKeyId, secretKey));

 

The Developer Guide has details on what signed requests are and how to construct signed requests.

Sample Code for Signed Requests is available in Java, C# and Perl.

Our technical staff and other customers are available to answer questions on our Community Forum .

More resources can be found at the Product Advertising API home page .  

Best wishes
Xingwei Hu

 

  • Marked As Answer bydezkev Friday, October 16, 2009 1:16 PM
  •  
Xingwei Hu  Friday, October 16, 2009 9:37 AM
Here is a link to the C# Forum

http://social.msdn.microsoft.com/Forums/en-US/Vsexpressvcs/threads


This is the Visual Basic (VB.NET) Forum
jwavila  Monday, October 12, 2009 1:38 PM
"This is the Visual Basic (VB.NET) Forum"

Yay jwavila. You know...the same thing that makes you a C programmer must be active and make them come down here. We don't go up there.
Renee
Renee Culver  Monday, October 12, 2009 1:53 PM

Hi dezkev

We previously announced that by August 15, 2009, the Product Advertising API will require all requests to be authenticated using request signatures. Many of you have already implemented signed requests or are in the process of implementing it, and we thank you for your timely cooperation.

Please look this thread or more information. :

http://developer.amazonwebservices.com/connect/ann.jspa?annID=444


http://flyingpies.wordpress.com/2009/08/01/17/


Step 1 – Create a sample console application
In Visual Studio 2008, select New/Project… from the File menu.
Select Console Application from Visual C#/Windows, and enter the application’s name.
Click OK

Visual Studio creates a new console application. So far, this isn’t different than any other console app.

Step 2 – Add a web service reference
In the Solution Explorer view, right click References, then select Add Service Reference…
.

Step 3 – Add code to access the Product Advertising API.
You could update your program as follows to have it connect to the product advertising API and search for books with “WCF” in their title. Make sure to add a using statement to reference the namespace you chose for the service in step 2.


Step 4 — Add the authentication code
Step 5 – Make the Amazon ECS client authenticate
Finally, to make our Amazon ECS client actually authenticate its requests, modify the main() method as follows:

// create a WCF Amazon ECS client
AWSECommerceServicePortTypeClient client = new AWSECommerceServicePortTypeClient(
new BasicHttpBinding(BasicHttpSecurityMode.Transport),
new EndpointAddress(”https://webservices.amazon.com/onca/soap?Service=AWSECommerceService”));

// add authentication to the ECS client
client.ChannelFactory.Endpoint.Behaviors.Add(new AmazonSigningEndpointBehavior(”ItemSearch”, accessKeyId, secretKey));

 

The Developer Guide has details on what signed requests are and how to construct signed requests.

Sample Code for Signed Requests is available in Java, C# and Perl.

Our technical staff and other customers are available to answer questions on our Community Forum .

More resources can be found at the Product Advertising API home page .  

Best wishes
Xingwei Hu

 

  • Marked As Answer bydezkev Friday, October 16, 2009 1:16 PM
  •  
Xingwei Hu  Friday, October 16, 2009 9:37 AM
Thanks a lot Xingwei Hu..... I signed up for AWS in October'09 and not a word from amazon about this new requirement.
I received newsletters and a sign up email with links to get my AWS keys etc...but not a word about the above.

So thanks again as otherwise I would never have known.

And my apologies for posting to the VB.Net forum.

C# beginer
dezkev  Friday, October 16, 2009 1:25 PM

You can use google to search for other answers

Custom Search

More Threads

• string question
• MouseClick event?
• SQL Server 2005 Management Studio Express
• Vb 2008 Express datagridview showing columns erratically
• Problem with Calculating a Total
• thanks.. ok one question
• array of labels and other such...
• UPDATED FILES AND FOLDERS
• How can I do that the default language will be hebrew in textbox?
• IRC Client, best method?