This topic has not yet been rated - Rate this topic

Use Web Service Data in Web Resources (REST and SOAP Endpoint)

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.

In This Section

Use the REST Endpoint for Web Resources
Describes the REST endpoint implementation for Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online.

Use the SOAP Endpoint for Web Resources
Describes how to use the SOAP endpoint to perform operations using JScript Libraries and Silverlight.

Related Sections

See Also

Microsoft Dynamics CRM 2011 and Microsoft Dynamics CRM Online
Send comments about this topic to Microsoft.
© 2012 Microsoft Corporation. All rights reserved.
Did you find this helpful?
(1500 characters remaining)
Community Content Add
Annotations FAQ