Resources



Sample Code and Libraries

VB.Net Library for Amazon SimpleDB

Click for a printer friendly version of this document Printer Friendly Save to del.icio.us
Average Review:

VB.Net Library for Amazon SimpleDB

Submitted By: Elena@AWS  
AWS Products Used: Amazon SimpleDB
Language(s): VB.NET
License: Apache License 2.0

About this Library

  • Based on the 2009-04-15 API version.

What's New?

  • 2009-05-20: Deprecate Query and QueryWithAttributes. Please migrate to Select API
  • 2009-03-23:Support for BatchPutAttributes, bug fix for url encoding in NextToken
  • 2008-12-17: Support for signature version 2, DomainMetadata and Select API, https endpoint
  • 2008-08-28: Support for new API - QueryWithAttributes
  • 2008-01-18: Fixed UTF8 encoding

Prerequisites

Package Content

Directory Overview
src Source distribution of the library. All sources including code samples that demonstrate the use of the library located under this directory.

Quick Start

Library comes with VB.Net solution and two pre-configured VB.Net projects.
  • Amazon.SimpleDB.vbproj - main library project
  • Amazon.SimpleDB.Samples.vbproj - library samples project
To get started with the library, follow these steps:
  1. Extract the amazon-simpledb-2009-04-15-vbnet-library.zip file into a working directory.
  2. Open Amazon.SimpleDB.sln solution file in Visual Studio 2005
  3. Hit F5 key and follow on screen instruction

Running Samples

Steps to run particular sample
  • Open AmazonSimpleDBSamples.vb file under Amazon.SimpleDB.Samples project
  • Set AWS Access Key ID and AWS Secret Access Key
  • Dim accessKeyId As String = "<Your Access Key ID>"
    Dim secretAccessKey As String = "<Your Secret Access Key>"
                


  • Set request parameters. For example, find following pre-generated snippet:
  • // Dim  request As New CreateDomainRequest()
    // @TODO: set request parameters here
    // CreateDomainSample.InvokeCreateDomain(service, request)
                


  • Uncomment first and third line and set DomainName:
  • Dim  request As New CreateDomainRequest()
    request.DomainName = "MyDomain"
    CreateDomainSample.InvokeCreateDomain(service, request)
    
                

  • Hit F5 to run sample. You should see the output similar to the following:


  •     CreateDomainResponse
            ResponseMetadata
                RequestId
                    95cdcb68-f46c-400b-8265-8c2de2a5c475
    
                


  • Experiment with other samples, examine samples sources. When ready, add library project to your solution, and use it.

Happy coding!

Making Requests to a Different Region

To make the service call to a different region, instantiate the client with the configuration object, and pass the region-specific endpoint. For example:

Dim service As New AmazonSimpleDBClient(accessKeyId, secretAccessKey, 
    New AmazonSimpleDBConfig().WithServiceURL("https://sdb.eu-west-1.amazonaws.com"))

See the Amazon SimpleDB Developer Guide for a complete list of region endpoints.

Previous Version Download

Comments, Questions or Feedback

If you have any comments, questions or feedback on the library, please start discussion here.

Discussion

The 5 most recent discussion messages. View full discussion.

J. W. Giudice
RealName(TM)
Posts: 4
Registered: 6/21/09
VB.Net Library for Amazon SimpleDB
Posted: Jun 21, 2009 6:31 PM PDT
 
  Click to reply to this thread Reply

I am building an application in VB.NET to work with Simple DB. I am wondering if people recommend using the WSDL library and doing web service calls or better to use the code sample library and build the app around them?

Also, if folks are interested is sharing code and ideas for work with VB.NET ans Simple DB, please let me know.

John

newbie42
Posts: 41
Registered: 7/2/09
Re: VB.Net Library for Amazon SimpleDB
Posted: Jul 2, 2009 1:03 PM PDT   in response to: J. W. Giudice
 
  Click to reply to this thread Reply

Hi I am trying to create a web form using vb.net that will simply accept parameters such as keywords, search amazon and bring back xml response which I can then display on the page ...

I cant find any info/tutorial or cose samples anywhere

can you help?

Craig@AWS
Posts: 127
Registered: 2/8/06
Re: VB.Net Library for Amazon SimpleDB
Posted: Jul 2, 2009 1:17 PM PDT   in response to: newbie42
 
  Click to reply to this thread Reply

Hi newbie42,

The Amazon SimpleDB Getting Started Guide has a tutorial-like walk-through of how to get set up using the VB.NET library. It's not a code sample for a web form, but it shows how you can write VB.NET code that uses SimpleDB. The latest version of the Getting Started Guide is here:

http://docs.amazonwebservices.com/AmazonSimpleDB/latest/GettingStartedGuide/

--Craig



Reviews
Create Review Write a Review

AWSSDK for Net?, Jan 3, 2010 9:58 AM
Reviewer: daniel
Useful but this demo does not use the new AWSDSK for .NET provided by Amazon.
Welcome, Guest Help
Login Login