cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
David_Pezzoli Advocate I
Advocate I

CrmServiceClient Class vs OrganizationServiceProxy Class Connections

Hi All,

I can connect my console application both with CrmServiceClient (by Microsoft.Xrm.Tooling nuGet lib) and with OrganizationServiceProxy Class (by Microsoft.Xrm.Sdk nuGet lib) to CDS for App.

 

By OrganizationServiceProxy:

https://arunpotti.wordpress.com/2018/02/03/step-by-step-to-connect-dynamics-365-crm-online-v9-x-usin...

 

By CrmServiceClient:

https://carldesouza.com/connecting-to-dynamics-365-using-crmserviceclient/

 

I don't understand what the pros and cons of the two methods are.

Could someone explain the difference well to me, please?

 

Unfortunately these posts are not clear to me:

 

- this post uses both connections without clarifying what happens without one of two:

https://www.briteglobal.com/blogs/community/connect-crm-online-console-ii/

 

- this post doesn't summarize well the pros and cons:

https://stackoverflow.com/questions/54030019/why-use-iorganizationservice-instead-of-crmserviceclien...

 

- the current MS docs doesn't explain well the differences.

 

 I'd like to hear your experience and advice from a good connector...

Thanks in advance,

 

David

 

2 REPLIES 2
Highlighted
DavidJennaway Responsive Resident
Responsive Resident

Re: CrmServiceClient Class vs OrganizationServiceProxy Class Connections

There are several internal differences, but the most important consideration is that CrmServiceClient is newer and designed to work with several authentication options, while OrganizationServiceProxy is tied to the WS-Trust authentication. The practical consequence of this is that Microsoft are recommending using CrmServiceClient, whereas OrganizationServiceProxy may get deprecated at some point in the future

David_Pezzoli Advocate I
Advocate I

Re: CrmServiceClient Class vs OrganizationServiceProxy Class Connections

Hi David Jennaway

So summarize, If I use:

I'm using a REST connection, correct?

 

Intestead, If I use:

  • Auth user based with a CDS non-intercative user (username + pwd)
  • API Web Instance target URL
  • Wrapper IOrganizationService CRUD operations like: Create(), Update(), Delete() etc..

I'm using SOAP connection, correct?

 

Thank you in advance,

 David

Helpful resources

Announcements
MBAS Gallery 2020

MBAS Gallery 2020

Watch Microsoft Business Applications Summit sessions on-demand.

firstImage

New Ranks and Rank Icons released on April 21!

The time has come: We are finally able to share more details on the brand-new ranks coming to the Power Apps Community!

Power Platform 2020 release wave 1 plan

Power Platform 2020 release wave 1 plan

Features releasing from April 2020 through September 2020

Users online (8,686)