Discovery Web Service

As explained previously, Microsoft CRM 2013 has multitenancy capability, which is support for more than one organization on the same server. Because of that, you need to query a general web service called XRMDiscoveryService that will give you the right web service for the organization you want to work with. You can find this by navigating to http://<servername>:<portnumber>/XRMServices/2011/Discovery.svc?wsdl (for example, http://crmwoifd/XRMServices/2011/Discovery.svc?wsdl).

Note

The port number can be omitted for the default port 80 of HTTP in this example.

To add a web reference for this service, go to Visual Studio 2012 and use the new console application project you created. Right-click the project name in the Solution ...

Get Microsoft Dynamics CRM 2013 Unleashed now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.