locked
What is REST and SOAP Endpoints? RRS feed

  • Question

  • What is REST and SOAP Endpoints?
    Monday, March 18, 2013 10:22 AM

Answers

  • From CRM 2011 SDK:

    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.

    It is advisable you download SDK and sample code from following link:


    http://www.microsoft.com/en-au/download/details.aspx?id=24004

    Hope this helps.
    -----------------------------------------------------------------------

    Minal Dahiya
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Monday, March 18, 2013 11:01 AM
  • Hi,

    Please go through the following links,

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

    http://msdn.microsoft.com/en-in/library/gg334279.aspx

    http://msdn.microsoft.com/en-in/library/gg490657.aspx

    http://ankit.inkeysolutions.com/2012/03/limitations-of-odata-endpoint-in-crm.html

    The REST endpoint provides a ‘RESTful’ web service using OData protocol 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.

    I personally use REST with JQuery & AJAX in my JScript web resources. REST is also used in silverlight client. In my plugins and custom workflow activities I use SOAP.

    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

    REST represents Representational State Transfer. REST is an architectural style in which every resource is addressed by using a unique URI. The REST endpoint provides an alternative to the WCF SOAP endpoint, but there are currently some limitations. Only Create, Retrieve, Update, and Delete actions can be performed on entity records. Messages that require the Execute method cannot be performed.Associate and disassociate actions can be performed by using navigation properties.

    The REST endpoint is primarily for Javascript and Silverlight webresources as a quick way of accessing data on the server. 

    It does have limitations compared to the SOAP endpoint but in theory it is easier to use in Javascript compared to SOAP since it works well with Ajax and JSON.


    Thanks & Regards, MS CRM Consultant, V.Surya. My Blog: http://inventcrm.wordpress.com/

    Monday, March 18, 2013 11:03 AM

All replies

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

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

    • Proposed as answer by SuryaMSCRM Monday, March 18, 2013 11:03 AM
    Monday, March 18, 2013 10:58 AM
  • From CRM 2011 SDK:

    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.

    It is advisable you download SDK and sample code from following link:


    http://www.microsoft.com/en-au/download/details.aspx?id=24004

    Hope this helps.
    -----------------------------------------------------------------------

    Minal Dahiya
    If this post answers your question, please click "Mark As Answer" on the post and "Vote as Helpful"

    Monday, March 18, 2013 11:01 AM
  • Hi,

    Please go through the following links,

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

    http://msdn.microsoft.com/en-in/library/gg334279.aspx

    http://msdn.microsoft.com/en-in/library/gg490657.aspx

    http://ankit.inkeysolutions.com/2012/03/limitations-of-odata-endpoint-in-crm.html

    The REST endpoint provides a ‘RESTful’ web service using OData protocol 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.

    I personally use REST with JQuery & AJAX in my JScript web resources. REST is also used in silverlight client. In my plugins and custom workflow activities I use SOAP.

    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

    REST represents Representational State Transfer. REST is an architectural style in which every resource is addressed by using a unique URI. The REST endpoint provides an alternative to the WCF SOAP endpoint, but there are currently some limitations. Only Create, Retrieve, Update, and Delete actions can be performed on entity records. Messages that require the Execute method cannot be performed.Associate and disassociate actions can be performed by using navigation properties.

    The REST endpoint is primarily for Javascript and Silverlight webresources as a quick way of accessing data on the server. 

    It does have limitations compared to the SOAP endpoint but in theory it is easier to use in Javascript compared to SOAP since it works well with Ajax and JSON.


    Thanks & Regards, MS CRM Consultant, V.Surya. My Blog: http://inventcrm.wordpress.com/

    Monday, March 18, 2013 11:03 AM