cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
David_Pezzoli
Level: Powered On

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

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: Powered On

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
New Ranks and Rank Icons in April

'New Ranks and Rank Icons in April

Read the announcement for more information!

Better Together’ Contest Finalists Announced!

'Better Together’ Contest Finalists Announced!

Congrats to the finalists of our ‘Better Together’-themed T-shirt design contest! Click for the top entries.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

thirdimage

Community Summit North America

Innovate, Collaborate, Grow - The top training and networking event across the globe for Microsoft Business Applications

Users online (9,154)