locked
CRM Web Service Vs SDK DLL RRS feed

  • Question

  • What is the difference in Using CRM Web Service and SDK DLL? Can anybody explain it with an example?
    Monday, August 1, 2011 8:03 AM

Answers

  • Hi Agarwal,

    While working in a project where we integrate with CRM, I noticed how important it is not to mix the ways you can integrate with.

    Either you create a reference to the CRM Web service in your Visual Studio project and the proxy classes are generated.

    Or you can reference microsoft.crm.sdk.dll and microsoft.crm.sdktypeproxy.dll that exists in the CRM SDK.

    You will soon notice that if you create a Request object, or maybe a BusinessEntity, DynamicEntity they are not compatible with eachother, and furthermore they might not even have the same methods and properties.

    My recommendation is to use the CRM SDK only and never create a Web reference from within Visual Studio. The CRM SDK objects have more friendly properties and methods.

    Please read these articles:

    http://msdn.microsoft.com/en-us/library/ee704593.aspx

    http://www.shanmcarthur.net/crm/developers-corner/using-crm-sdk-instead-of-web-reference

     


    Thanks & Regards, MS CRM Consultant, V.Surya.
    Monday, August 1, 2011 9:42 AM