Export (0) Print
Expand All

Use Microsoft Dynamics CRM Services in Code

[Applies to: Microsoft 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.

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

IDiscoveryService Web Service

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.

IOrganizationService Web Service

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.

Add the Microsoft Dynamics CRM 2011 Assemblies to Your Project

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

Add the Service Reference to Your Project

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 Developer Resources Page.

See Also

Microsoft Dynamics CRM 2011
Send comments about this topic to Microsoft.
© 2013 Microsoft Corporation. All rights reserved.

Community Additions

ADD
Show:
© 2014 Microsoft