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 Client Libraries No of Views: 12350
WCF tutorial | OData Client Libraries

OData Client Libraries

OData client libraries are the set of proxy code use to read the feeds data from OData data service. Microsoft and other providers provide the no. of client libraries for versions 3.5 and 4 of the .NET Framework, JavaScript, Silverlight, Java, PHP, Android, iOS, Windows Phone 7, and Ruby.

Download the library from the below link

http://msdn.microsoft.com/en-us/data/ee720179.aspx

Similar to proxy creation using WSDL file from WCF service, you can create the proxy class for OData service using metadata from CSDL (conceptual schema definition language) definition

Tips!

  • 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.