WCF Tutorial
www.Learn2Expert.net A new ASP.Net MVC 4, SSIS, Interview Q/A tutorial - Visit - www.Learn2Expert.net
Skip Navigation LinksHomeParts of ODataOData Service No of Views: 21077

OData Service

OData Service is service used to expose the data as a resource using OData protocol. This resource can be access using the URL with query expression.

OData Service can be developed in .Net framework using WCF Data service, it can also be developed using Java using open source odata4j toolkit. This toolkit provides support for exposing data through a Java Persistence API (JPA) entity model or from plain old Java objects (POJOs).


  • Always create the service with Interface->Implementation format, mention the contract in Interface.
  • Define the service in Class library and refer the class library in Host project. Don’t use service class in host project.
  • Change the instance mode to per call as default.
  • Always catch exception using try/catch block and throw exception using FaultException < T >.
  • Logging and Include exception should be enable while compiling the project in debug mode. While in production deployment disable the logging and Include exception details.