User Groups

RESTFul Services in Silverlight - CT Code Camp June 2009

Downloade the Presentation and Code 

The Connecticut User Group organized a full day code camp event in Bloomfield, CT. The topic I presented on was “RESTFul Services and Silverlight”. The presentation was organized around the following main topics:

  • Web Services via SOAP
  • RESTFul Services
  • Creating a WCF RESTFul Service
  • Consuming a Custom WCF RESTFul Service in Silverlight

The attached slide deck will provide you with highlights on each topic. The code samples revolve around the AdventureWorks Database. I have partitioned the code into Data Access, Service Layer and a UI Layer.

  • Database: AdventureWorksDB from code plex. You can download it from here: http://www.codeplex.com/MSFTDBProdSamples
  • Data Access: Used Nettiers and Codesmith to Generate the CRUD methods to access Adventure Works.
  • Service Layer: WCF, ASMX and WCF REST service examples. I have also included a sample service from John Papa’s Data Services with Silverlight book. I would recommend this book for who ever is working with Siverlight
  • UI Layer: Consists of a ASP.NET web site that houses the silverlight controls and the silverlight controls themselves. The services are conusmed by silverlight.

During the actual presentation, i also created a simple WCF Service and demo’ed how to use a simple SOAP WCF service in a silverlight client using the Asynchronous pattern.

Check the samples out!

Happy coding

Reddy (reddy.kadasani@tallan.com)

.NET Framework
Presentations
User Groups
WCF

Comments (0)

Permalink

Creating Databound Silverlight 2.0 Web Applications

This topic was presented during the February CTDOTNET user group meeting in Farmington, CT.
The attached presentation (Slide Deck) and source code (Source Code) provide an introduction to creating databound application using silverlight 2.0

Requirements

  • Visual Studio 2008
  • Silveright Tools (SDK, Controls, Templates). http://silveright.net/GetStarted
  • SQl Server 2005 and AdventureWorks Sample Database: To run the web service example.

Overview

  • Basic Data Binding
    • Data Context
    • BindingProperty
  • Data Binding Concepts
    • One Way Data Binding
    • Two Way Data Binding
    • One Time Data Binding
    • INotifyChangeHandler
    • Data Binding Collections
  • Tiered Development
    • Create Web or WCF Services for Data Access
    • Create a ClientAccessPolicy.xml file. Otherwise silverlight will not be able to access the web service.
    • Note: Only basicHttpBinding is supported in Silverlight
    • Note: You cannot create references to Non-Silverlight libraries in a Silverlight Application or Silverlight Class Library project
    • As a result you have to create a service layer to consume your existing entities and data access tiers in a silverlight application

Sample Code Structure

  • AdventureWorks.Nettiers.Data: Data Access Layer
  • AdventureWorks.Nettiers.Data.SqlClient: Data Access Layer
  • AdventureWorks.Nettiers.Entities: Entities or Domain Objects
  • DALUnitTestApp: Unit test Library
  • DataBindingBasics and DataBindingBasics.Web: Silverlight Sample Code that shows Databinding Basic Examples
  • ListBindingBasics and ListBindingBasics.Web: Silverlight Sample Code that shows Databinding Lists/Collections Examples
  • ProductService: ASMX web service consumed by ListBindingBasics. Look in ListBindingBasics\Page2.xaml how the service is used

- Reddy

.NET Framework
Presentations
User Groups

Comments (0)

Permalink

Hartford Code Camp - Spring.NET Presentation Material

This Saturday was the first Hartford Code Camp. I presented on SpringFramework.NET specifically regarding Inversion of Control (IOC).

The presentation is in PowerPoint and discusses some of the basic concepts that need to be understood prior to understanding Spring.NET.

The source code is what was demonstrated during the presentation. It contains two solution folders.

  • TightlyCoupledClasses - Example of normal C# development where classes are tightly coupled together with manual instantiation.
  • LooselyCoupledClasses - Similar code loosely coupled using Spring.NET IOC. Includes various NUnit tests utilizing mock objects showing the ability to isolate tests with manual injection of mock objects.

PowerPoint Slides

Source Code

If you have any question feel free to post questions or comments here or email me directly at lrodgers@tallan.com.

Presentations
User Groups

Comments (0)

Permalink

Hartford Code Camp

This weekend was the first Hartford area Microsoft Code Camp. It was very successful with well over 150 attendees and over 22 presenters. We presented the following topics:

  • Lee Rodgers - Spring.NET & IOC
  • Reddy Kadasani - Silverlight - Lighting up the Web

Presentation content and demo content will be posted to this site in the next few days, so please check back.

Addition information about the code camp can be found at the Conneticut .NET user group website (http://ctdotnet.org).

Presentations
User Groups

Comments (0)

Permalink