cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
David_Pezzoli
Level: Power Up

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

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
Level: Power Up

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
thirdimage

Power Automate Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

fifthimage

Microsoft Learn

Learn how to build the business apps that you need.

Users Online
Currently online: 125 members 5,179 guests
Please welcome our newest community members: