Use Microsoft Dynamics 2011 CRM Services in Code

 

Applies To: Dynamics CRM 2011

Microsoft Dynamics CRM 2011 provides two Web services. These services can be used to identify your organization and to access Microsoft Dynamics CRM data. This section describes how to use these services when you are developing applications that use Microsoft Dynamics CRM.

System_CAPS_importantImportant

To use Microsoft Dynamics CRM Online (or any claims-based environment), you must install Windows Identity Foundation.

A single Microsoft Dynamics CRM installation can host multiple organizations on multiple servers. Therefore, it is important to specify which organization you want to access. The IDiscoveryService Web service returns a list of organizations that the specified user belongs to and the URL endpoint address for each organization. For more information about the IDiscoveryService Web service, see Discover the URL for Your Organization with IDiscoveryService Web Service and IDiscoveryService.

The primary Web service for accessing data and metadata in Microsoft Dynamics CRM 2011 is the IOrganizationService Web service. For more information about the IOrganizationService Web service, see Use the IOrganizationService Web Service to Read and Write Data or Metadata and IOrganizationService.

Most of the time you will choose to use the SDK assemblies in your development projects. Using the assemblies is the recommended developer scenario for Microsoft Dynamics CRM 2011. These assemblies are in the SDK\Bin folder, along with the corresponding Visual Studio IntelliSense XML files. For more information about the assemblies, their contents and usage, see Assemblies Included in the Microsoft Dynamics CRM 2011 SDK.

You may have a development scenario where you want to include the service reference in your project rather than using the assemblies. To find the correct service references for your organization, see Download the Endpoints Using the Dynamics CRM 2011 Developer Resources Page.

Microsoft Dynamics CRM 2011

© Microsoft Corporation. All rights reserved. Copyright

Show: