web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Microsoft Dynamics CRM (Archived)

OrganizationService vs OrganizationServiceProxy

(1) ShareShare
ReportReport
Posted on by

Hi everybody,

I have a small technical question: Could someone tell me the difference between class and OrganizationService OrganisationServiceProxy (which are both descendants of IOrganizationService)?

I like using the OrganizationService class because it allows you to configure the timeout easily via its CRMConnection member.

I identified that the OrganizationServiceProxy class exposes a method named EnableProxyTypes that seems useful to enable the early-bound. However, when I use the OrganizationService class, I am able to work on the CRM entities in early-bound without difficulty, it seems to me.

Does anybody could also advise me the best method of connection to the CRM knowing that my need is to set the timeout of the web service and to work in early-bound when I work with the entities of CRM?

Thanks a lot for your help,

Emmanuel Barache
Consultant CRM 
https://humansmart.diademys.com/signature2/novulys.png
Novulys | Groupe Diademys
28 Quai Gallieni, 92150 Suresnes
Tel. +33 1 44 01 53 53 | Mob. +33 6 09 92 16 13 | Fax. +33 1 47 91 43 99
emmanuel.barache@novulys.fr | www.novulys.fr

*This post is locked for comments

I have the same question (0)
  • Antony Ellis Profile Picture
    65 on at
    RE: OrganizationService vs OrganizationServiceProxy

    Just incase someone stumbles across this thread I blogged last year on approaches for connecting to CRM using rich clients etc. antonyellisdynamicscrm.wordpress.com/.../connecting-to-dynamics-365-and-earlier-crm-versions

    antonyellisdynamicscrm.wordpress.com/.../dynamics-365-crm-sdk-version-comparisons

  • Verified answer
    Community Member Profile Picture
    on at
    RE: OrganizationService vs OrganizationServiceProxy

    I think another important distinction is that the proxy is not thread safe

  • Emmanuel Barache Profile Picture
    on at
    RE: OrganizationService vs OrganizationServiceProxy

    Hello Scott,

    Thank you very much for your answer.

    Emmanuel

  • Suggested answer
    ScottDurow Profile Picture
    21 on at
    RE: OrganizationService vs OrganizationServiceProxy

    Hi Emmanuel,

    OrganizationService is a higher level class that provides richer client side functionality and actually uses OrganizationServiceProxy inside it.

    The Microsoft.Xrm.Client assembly that holds this higher level API cannot be used in Plugins etc but is intended for rich clients and ASP.NET.

    It's worth noting that the Microsoft.Xrm.Client assembly has been removed from the CRM2016 SDK. For 2016 projects you might consider using the XRM Toolking assemblies.

    See msdn.microsoft.com/.../dn689057.aspx

    It has similar functionality that you mention around the connection manager -msdn.microsoft.com/.../mt608573.aspx

    Hope this answers your question!

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Abhilash Warrier – Community Spotlight

We are honored to recognize Abhilash Warrier as our Community Spotlight honoree for…

Leaderboard > 🔒一 Microsoft Dynamics CRM (Archived)

#1
Aric Levin - MVP Profile Picture

Aric Levin - MVP 2 Moderator

#1
HR-09070029-0 Profile Picture

HR-09070029-0 2

#3
MA-04060624-0 Profile Picture

MA-04060624-0 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans