header image

Archive for 9531

RESTful WCF Service

Posted by: | July 8, 2009 | No Comment |

RESTful WCF Services works by identifing the Resources & Action from Uniform Resource Identifiers (URIs).

A RESTful web service is called by a unique URI to refer a resource and HTTP verb is to define actions to the resource.

HTTP Method – Verb
GET – Fetch
PUT – Update/Insert
DELETE – Delete
POST – Append

webHttpBinding is a new WCF binding in Fx 3.5 to develop RESTful services. This does not use SOAP envelopes HTTP and HTTPS Transports. It supports XML, JSON and Binary (streams).

WebServiceHost is a specialized SerivceHost which automatically configures address, binding, contract.
If no endpoint is defined, WebServiceHost automatically creates a default endpoint. WebServiceHost adds WebHttpBehavior and disables the HTTP Help page and the Web Services Description Language (WSDL) GET functionality.

[WebGet] And [WebInvoke] attribute
Binds a WCF operation to URI space and HTTP method Indicate the HTTP Method for the operation

WebGet – No method is require

WebInvoke – All verbs other than GET (Method parameter takes in the name of the Verb)

Other attributes can mentioed
BodyStyle – Indicates whether the Request/ Response are wrapped or not
RequestFormat – Json or Xml
ResponseFormat – Json or Xml

UriTemplate – Rich binding to URI UriTemplate String that allows define the structure/pattern of the URI

under: 9531, 9532, 9534


Posted by: | December 23, 2008 | No Comment |

The series blog post on REST in WCF

  • REST in WCF – Part I (REST Overview)
  • REST in WCF – Part II (AJAX Friendly Services, Creating The Service)
  • REST in WCF – Part III (AJAX Friendly Services, Consuming The Service)
  • REST in WCF – Part IV (HI-REST – Exposing a service via GET – Configuring the service)
  • REST in WCF – Part V (HI-REST – Exposing a service via GET – The ServiceContract and Implementation)
  • REST in WCF – Part VI (HI-REST – Consuming our GET service via AJAX)
  • REST in WCF – Part VII (HI-REST – Implementing Insert and Update
  • REST in WCF – Part VIII (HI-REST – Implementing Delete)
  • REST in WCF – Part IX – Controlling the URI
  • REST in WCF – Part X – Supporting Caching and Conditional GET
  • under: 9531, 9532, 9533, 9534

    Introducing LINQ Tutorial

    Posted by: | June 30, 2008 | 7 Comments |

    These reference sites that might help you:

    Wikipedia: http://en.wikipedia.org/wiki/Language_integrated_query
    CodeProject: http://www.codeproject.com/KB/linq/
    LINQ Video: http://windowsclient.net/learn/videos_LINQ.aspx , http://www.asp.net/learn/linq-videos/
    LINQ Article by Anders: http://msdn.microsoft.com/en-us/library/bb308959.aspx
    LINQ at MSDN: http://msdn.microsoft.com/en-us/library/bb397926.aspx
    LINQ Project Home page at MSDN: http://msdn.microsoft.com/en-us/netframework/aa904594.aspx
    LINQ FAQ: http://forums.microsoft.com/MSDN/ShowPost.aspx?PostID=307705&SiteID=1

    ScottGu’s Blog

  • Part 1: Introduction to LINQ to SQL
  • Part 2: Defining our Data Model Classes
  • Part 3: Querying our Database
  • Part 4: Updating our Database
  • Part 5: Binding UI using the ASP:LinqDataSource Control
  • Part 6: Retrieving Data Using Stored Procedures
  • Part 7: Updating our Database using Stored Procedures
  • Part 8: Executing Custom SQL Expressions
  • Part 9: Using a Custom LINQ Expression with the <asp:LinqDatasource> control)
  • Step by step…
    Introducing LINQ – Part 1
    Introducing LINQ – Part 2
    Introducing LINQ – Part 3
    Introducing LINQ – Part 4
    Introducing LINQ – Part 5

    under: 9531, 9552

    Visual Studio 2008 & .NET 3.5 – WHAT’S NEW




    VS 2008 Code Editing Improvements


    Hands on Lab on VS2008, SQL2008, WS2008 – all 2008 releases…


    under: 9531, 9553

    Self learnig resources are all free as a Traning Kit on Visual Studio 2008 and .NET Framework 3.5.

    This Training Kit containing Labs, Demos and PPTs


    under: 9531

    under: 9531, 9543