In addition to the script-based getting started sandbox described in the WebSphere eXtreme Scale REST Data Service Getting Started Sample readme, an ADO.NET Data Services client, written using C# and Visual Studio 2008 SP1 project is included to get you started on your own eXtreme Scale REST data service development activities.
The C# ADO.NET Data Services client communicates with the eXtreme Scale REST data service supplied with the getting started sample. Before using this sample, the eXtreme Scale grid and REST data service must be configured and started. See the WebSphere eXtreme Scale REST Data ServiceGetting Started Sample readme for details on how to configure and create the eXtreme Scale grid and REST data service.
The provided project has been tested with Microsoft Visual Studio 2008 SP1. The following steps guide you through the setup of your Visual Studio 2008 development environment.
Substitute install_root with the path to the eXtreme Scale installation root directory or the root file path of the extracted eXtreme Scale trial.
After completing these steps, the WXSRESTGettingStarted project is loaded into Visual Studio 2008 SP1.
The following steps describe how to build and run the sample:
Substitute the URL of the REST data service that was started in WebSphere Application Server, WebSphere Application Server Community Edition or Apache Tomcat. For example: WXSRestGettingStarted.exe http://localhost:8080/wxsrestservice/restservice/NorthwindGrid load default
This will load the eXtreme Scale grid with a default set of data using the sample ADO.NET Data Service client. When the client is running, you will see several messages on the console describing which products and orders are being created. When it is complete, the following message is displayed: Operation Complete. Press any key
All of the orders for a customer with the id of "ACME" are displayed.
If the service can't connect to the eXtreme Scale REST data service,an error message will be seen in the console window: Unhandled Exception: System.NullReferenceException: Object reference not set to an instance of an object.
If this error is displayed, verify that the data service URL specified is correct and that the eXtreme Scale REST data service is started. To verify that the service is started, open a web browser and navigate to the data service URL. If the service is running properly, an XML document is displayed with the data service entity types that are available.
For instructions and additional information on using the REST data service see the WebSphere eXtreme Scale REST data service user guide in the eXtreme Scale technical library:WebSphere eXtreme Scale REST data service User Guide