We will soon upgrade to CRM 2011 so I’m doing some tests. The problem is that when I change my web service reference to the 2011 one, my application stops compiling. It just won’t find any entity (example of line that stops working: Account acc = new Account() -> It says that I must miss a reference).
When I compare the web services of the CRM 4 to the one of the CRM 2011, I see that it’s true. The CrmService of CRM 4 contains the definition of every entity of the CRM, but they do not appear in the CRM 2011!
Why is that? Am I missing something? Do I need to activate something?
Just to make sure, here are the URLs I’m using:
http://myserver/mscrmservices/2006/CrmServiceWsdl.aspx -> Works perfectly
http://myserver/mscrmservices/2007/CrmService.asmx?WSDL -> Does not contain entity definition
http://myserver/mscrmservices/2007/CrmService.asmx?WSDL&uniquename=MyOrg -> Does not contain entity definition
http://myserver/mscrmservices/2007/crmservicewsdl.aspx -> Does not contain entity definition
You are using the wrong endpoints.
Dynamics CRM 2011 introduces a complete new WCF based web service.
It’s endpoint is
http://ServerName/OrganizationName/XRMServices/2011/Organization.svcSee the endpoint overviewSo you should either add a Service Reference (See Use the WSDL Endpoint) or use early/late bound access (See Write Code for Microsoft Dynamics CRM (Web Services)
The endpoints you mention in your post are for legacy purposes. See the article Use the Microsoft Dynamics CRM 4.0 (2007) Endpoint