8.09.2012

WCF Difference FAQs-3

1.Difference between WCF Data Services and WCF RIA Services
S.No
WCF Data Services
WCF RIA Services
1
Supported Clients:

Resource-based API, supports all clients via deep REST and OData support.
Supported Clients:

Domain-based API, most tailored for use with Silverlight, but supports other clients via SOAP, JSON, and OData.
2
Supported Data Access Layers :

Targets EF. Other DALs are supported, but greater effort is required.
Supported Data Access Layers :

Supports EF, LINQ to SQL, and POCO (custom persistence layer).
3
Client Development :

Requires you to notify the context for change tracking.
Client Development :

Supports self-tracking entities, synchronized client/server logic, and much more (particularly with Silverlight).
4
Service Development :

Instant, code-less, extensible REST services out of the box (with EF); “free CRUD.”
Service Development :

Requires you to code CRUD operations manually in domain service classes.

Another good reference:
http://silverlighttime.blogspot.in/2011/04/what-is-difference-between-wcf-data.html

2.Difference between Close and Abort in WCF Channels
S.No
Close
Abort
1
Close performs graceful shutdown of Client Channel
Abort shut downs Client channel immediately.
2
Close waits for in progress calls to complete before closing
Abort ends in progress calls.

3
Close should not be called in faulted channels as it can throw Communication or Timeout exception
Abort should be called in faulted channels.
3.Difference between ASMX and SVC
S.No
ASMX
SVC
1
Web service class inheritance for ASMX is called WebService
There is no Web service class inheritance for SVC.
2
In ASMX,Web service class attribute is called as WebServiceAttribute.
In SVC,Web service class attribute is called as ServiceContractAttribute.
3
In ASMX,Web service method attribute is called as WebMethodAttribute.
In SVC,Web service method attribute is called as OperationContractAttribute.
4
In ASMX,Data class attribute is called as XmlRootAttribute
In SVC,Data class attribute is called as DataContractAttribute.
5
In ASMX,Data class field attribute is called as XmlElementAttribute
In SVC,Data class field attribute is called as DataMemberAttribute.
6
In ASMX,HTTP endpoint resource is called as .ASMX.
In SVC,HTTP endpoint resource is called as .SVC
7
In ASMX, Serialization attribute is called as XMLSerializer attribute.
In SVC, Serialization attribute is called as DataContractSerializer attribute.

No comments:

Post a Comment