URL to each resource using nouns, not verbs (http://rest.parts.com/parts/90fh3 accessible via HTTP GET, POST, PUT and/or DELETE)
Enable GET clients to drill down to get more information by revealing data gradually.
Specify format response using DTS, W3C, RelaxNG or Schematron and provide specific schema for POST and PUT.
Document service invocation into HTML or WSDL document.
REST in WCF?
Resource-oriented services that implement uniform interfaces using standard HTTP (GET, POST, PUT, and DELETE), and that can be query by a URI.
Microsoft improved “REST support within WCF was enhanced with the release of .NET Framework 3.5 SP1 to add make REST development easier and to support the ADO.NET Entity Framework entities in WCF contracts.”
New HTTP NET CLIENT Class.
Server Side Features.
HTTP Request Header "text/xml“ for XML “ and application/json“ for JSON
XHttpMethodOverride to post DELETE and PUT Http request
REST Service Cache Duration settings
Security enable with RequestInterceptor
WebException serialized as JSON or XML
HTTP Asynchronous Client programming model
XML/XSD Type
Exposing XSD with REST?
XSD describes the structure of a XML document.
VS Command prompt XSD.exe generates code from a XML schema Definition.
c:dev
est xsd parts.xsd
Create a WCF Service interface in Visual Studio [serviceContract] using [XMLSerializerFormat]
Create the class that implement the interface methods.
Web.config settings to support RESTfull representation webHttpBinding
Reference Material
I-DigitalTek - Contact US
Wikipedia
Microsoft MSDN
Architectural Styles and the Design of Network-based Software Architectures, Roy Thomas Fielding 2000
0 comments
Post a comment