There are two ways to use CRM services in code: SDK assemblies and service references. Using SDK assemblies is the recommended approach for Microsoft Dynamics CRM 2011 development. So in this chapter, we will only introduce how to use SDK assemblies to access CRM data.
Microsoft Dynamics CRM 2011 provides two major Web Services:
IOrganizationService: The primary CRM Web Service used to access data and metadata for the specified organization.
The following diagram shows the methods and messages of IOrganizationService:
IDiscoveryService: Useful in a multi-tenant environment to determine whether a user is a member of the organization, and the endpoint address URL used to access the IOrganizationService Web Service for each of the organizations.
The following diagram shows the methods and messages of IDiscoverService:
In addition to the above Web Services, CRM also provides a multi-tenant support Web Service: IDeploymentService...