cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
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

Highlighted
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
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (8,103)