Posts

Showing posts from 2013

Open Data Protocol

The open data protocol is a web protocol for querying and updating data.OData does this by applying and building upon web technologies such as HTTP Atom publishing Protocol (AtomPub) JSON to provide access to information from variety of applications,services and stores. OData being used to access information from different sources like Relational Data base File Systems Content management systems Traditional  web sites OData is consistent with the way the Web Works.This Commitment to core Web Principles allow Odata enable a new level of data integration and interoperability across the broad range of clients,server, services and tools. OData provides the uniform way to expose,structure,query and manipulate data using REST practices and JSON or ATOM.OData also provides a way to reprasent metadata about the data,allowing computers to know more about the type system,relationships and structure of the data.

REST Endpoint or OData operations in MS CRM 2011-Part 1

To locate and retrieve data with the REST Endpoint, manipulate URI. The organization root URL must include organization. We can retrieve service root URI by using Xrm.Page.context. getServerUrl Each MS CRM 2011 entity is represented in the conceptual schema definition language (CSDL). The Naming convention is [ Entity Schema name] Set MS CRM 2011 entity attributes. Each property is assigned a data type that corresponds to one of the primitive Entity Data Model (EDM) data types or Complex type defined for MS CRM. Complex Types: 1.        Microsoft.Crm.Sdk.Data.Services.EntityReference à represents EntityReference and Customer Owner. 2.        Microsoft.Crm.Sdk.Data.Services.OptionSetValue à OptionSetValue, State and Status. 3.        Microsoft.Crm.Sdk.Data.Services.Money à Money 4.        Microsoft.Crm.Sdk.Data.Services.BooleanManagedProperty à BooleanMangedProperty Entity Reference Name Type Id GUID Logical

Calling a WCF Service in MS CRM 2011

One of excited future of WCF service is execute a WCF service by custom code. This future is very helpful to call WCF Service in MS CRM 2011 plug-in. We can use BasicHttpBinding concept of WCF. Code :   BasicHttpBinding  binding =  new   BasicHttpBinding ();  binding .Name =  "BasicHttpBinding" ;  binding .Security.Mode =  BasicHttpSecurityMode .None;  binding .Security.Transport.ClientCredentialType =  HttpClientCredentialType .None;  binding .Security.Transport.ProxyCredentialType =  HttpProxyCredentialType .None;  binding .Security.Message.ClientCredentialType =                                                     BasicHttpMessageCredentialType .UserName;   EndpointAddress  endPointAddress =  new   EndpointAddress (“your WCF Service URL”); using  ( ServiceClient  holidayService =  new ServiceClient ( binding , endPointAddress )) { //Required Code }