locked
How to start with REST methods in MS CRM 2011 RRS feed

  • Question

  • Hello All,

    I just want to know how we can use REST Endpoint, OData and SOAP Endpoint in MS CRM 2011.

    What are the advantages of these both features?

    Let me know any one scenario's  where we can use this features in MS CRM 2011.

    Thanks

    Kumar R


    • Edited by Kumar_R Wednesday, January 23, 2013 8:12 AM ,
    Wednesday, January 23, 2013 8:10 AM

Answers

  • You can use JScript and Silverlight Web resources to access Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online data from within the application. There are two web services available, each provides specific strengths. The following table describes the appropriate web service to use depending on the task you need to perform.

     

    Task Web Service

    Create, Retrieve, Update and Delete records.

    REST Endpoint

    Associate and Disassociate records

    REST Endpoint

    Assign Records

    SOAP Endpoint

    Retrieve Metadata

    SOAP Endpoint

    Execute Messages

    SOAP Endpoint

    Both of these Web services rely on the authentication provided by the Microsoft Dynamics CRM application. They cannot be used by code that executes outside the context of the application. They are effectively limited to use within Silverlight, JScript libraries, or JScript included in Web Page (HTML) Web resources.

    The REST endpoint provides a ‘RESTful’ web service using OData to provide a programming environment that is familiar to many developers. It is the recommended web service to use for tasks that involve creating, retrieving, updating and deleting records. However, in this release of Microsoft Dynamics CRM the capabilities of this Web service are limited to these actions. Future versions of Microsoft Dynamics CRM will enhance the capabilities of the REST endpoint.

    The SOAP endpoint provides access to all the messages defined in the Organization service. However, only the types defined within the WSDL will be returned. There is no strong type support. While the SOAP endpoint is also capable of performing create, retrieve, update and delete operations, the REST endpoint provides a better developer experience. In this release of Microsoft Dynamics CRM the SOAP endpoint provides an alternative way to perform operations that the REST endpoint is not yet capable of.

    Source


    Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    • Proposed as answer by D Suresh Kumar Thursday, January 24, 2013 8:21 AM
    • Marked as answer by Kumar_R Monday, January 28, 2013 9:14 AM
    Wednesday, January 23, 2013 10:21 AM

All replies

  • Please check the following link

    http://msdn.microsoft.com/en-us/library/gg490659.aspx


    Hope this helps. If you get answer of your question, please mark the response as an answer and vote as helpful !
    Vikram !

    Wednesday, January 23, 2013 8:23 AM
  • Hello Kumar,

    If you have any requirement to access MS CRM data/metada, you can't access MS CRM 2011 tables directly (technically it is possible but not considered as supported way) so Microsoft provides rich webservice/APIs to use for access data/metadata, you have two options to use rest endpoints or soapendpoints to get data from ms crm 2011. Rest is limited to specific operations but easy to use whereas you can use soap for all type of requirement, take a look to this.

    you can get more information on latest MS CRM SDK.

    HTH


    Contact Me
    Follow me on Twitter
    My Facebook Page
    Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    • Proposed as answer by HIMBAPModerator Wednesday, January 23, 2013 8:26 AM
    Wednesday, January 23, 2013 8:26 AM
    Moderator
  • You can use JScript and Silverlight Web resources to access Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online data from within the application. There are two web services available, each provides specific strengths. The following table describes the appropriate web service to use depending on the task you need to perform.

     

    Task Web Service

    Create, Retrieve, Update and Delete records.

    REST Endpoint

    Associate and Disassociate records

    REST Endpoint

    Assign Records

    SOAP Endpoint

    Retrieve Metadata

    SOAP Endpoint

    Execute Messages

    SOAP Endpoint

    Both of these Web services rely on the authentication provided by the Microsoft Dynamics CRM application. They cannot be used by code that executes outside the context of the application. They are effectively limited to use within Silverlight, JScript libraries, or JScript included in Web Page (HTML) Web resources.

    The REST endpoint provides a ‘RESTful’ web service using OData to provide a programming environment that is familiar to many developers. It is the recommended web service to use for tasks that involve creating, retrieving, updating and deleting records. However, in this release of Microsoft Dynamics CRM the capabilities of this Web service are limited to these actions. Future versions of Microsoft Dynamics CRM will enhance the capabilities of the REST endpoint.

    The SOAP endpoint provides access to all the messages defined in the Organization service. However, only the types defined within the WSDL will be returned. There is no strong type support. While the SOAP endpoint is also capable of performing create, retrieve, update and delete operations, the REST endpoint provides a better developer experience. In this release of Microsoft Dynamics CRM the SOAP endpoint provides an alternative way to perform operations that the REST endpoint is not yet capable of.

    Source


    Thanks and Regards. Make sure to "Vote as Helpful" and "Mark As Answer",if you get answer of your question.

    • Proposed as answer by D Suresh Kumar Thursday, January 24, 2013 8:21 AM
    • Marked as answer by Kumar_R Monday, January 28, 2013 9:14 AM
    Wednesday, January 23, 2013 10:21 AM