Windows Develop Bookmark and Share   
 index > Windows Forms Sample Applications > Movie Collection Kit - Need Help
 

Movie Collection Kit - Need Help

Hi

I am brand new to C# and learning bits each day (or trying to!). I have started to basically understand how this movie collection works and need some assistance in the way this works online with Amazon. Is it possible to change where it gets its DVD info from Amazon.com to Amazon.co.uk? And if so where/what do I need to change in the code/controls.

Many Thanks

Neil

NeilDexter  Thursday, December 28, 2006 4:05 PM

Yes, this can actually be done fairly easily. Using the Solution Explorer, open up the "Properties\Settings.settings" file, which specifies the default settings for the application. Change the Value of the AmazonLocale field from "EN" to "UK". That's all there is to it.

It is probably well worth your time exploring how this value is accessed in the code and used to determine which Amazon web service URL (soap.amazon.com, soap.amazon.de, soap.amazon.co.jp, etc.) to contact with requests. Take a look at the GetLocUrl() method in the SimpleAmazonWS class in SimpleAmazonWS.cs, and the other methods that use GetLocUrl().

As it turns out, the Movie Collection starter kit uses the same web service URL (soap.amazon.com) for both the EN and UK locales. If Amazon actually has a separate soap.amazon.co.uk service, you could set that up in the Settings.settings file as well.

Hope this helps!

-Tom Meschter
Software Dev, Visual C# IDE

Tom Meschter MSFT  Thursday, December 28, 2006 5:06 PM

Yes, this can actually be done fairly easily. Using the Solution Explorer, open up the "Properties\Settings.settings" file, which specifies the default settings for the application. Change the Value of the AmazonLocale field from "EN" to "UK". That's all there is to it.

It is probably well worth your time exploring how this value is accessed in the code and used to determine which Amazon web service URL (soap.amazon.com, soap.amazon.de, soap.amazon.co.jp, etc.) to contact with requests. Take a look at the GetLocUrl() method in the SimpleAmazonWS class in SimpleAmazonWS.cs, and the other methods that use GetLocUrl().

As it turns out, the Movie Collection starter kit uses the same web service URL (soap.amazon.com) for both the EN and UK locales. If Amazon actually has a separate soap.amazon.co.uk service, you could set that up in the Settings.settings file as well.

Hope this helps!

-Tom Meschter
Software Dev, Visual C# IDE

Tom Meschter MSFT  Thursday, December 28, 2006 5:06 PM

Many thanks Tom,

Managed to locate everythinhg all ok. I did find I had to change the UK coding for the URL to .co.uk in order for it to go to the Amazon UK site but works fine now. Beginning to get a better understanding of how the online search works as well.

Again many thanks for your help.

Neil

NeilDexter  Thursday, December 28, 2006 8:09 PM

You can use google to search for other answers

Custom Search

More Threads

• PocketTaskVision in VB.NET?
• Download link for Windows Samples?
• Local Server Not Working
• why I can't use my former acount?
• Hyper terminal
• My Form-Designer doesnt work anymore!
• how to create those dataset class files in web services?
• Smart Client Error,help
• about Icons of XPander
• Question about copy file to system32 under Vista RTM