Hello,
can anyone explain what is the difference between this two "services" when opening connection to CRM from web application?
Why should i use one over other one?
And this thing is confusing, why do you create an instance of CrmServiceClient with OrganizationServiceProxy ?
CrmServiceClient(OrganizationServiceProxy);
or even better after you create an instance of CrmServiceClient, why do you cast it to IOrganizationService
CrmServiceClient conn = new Xrm.Tooling.Connector.CrmServiceClient(connectionString);
private IOrganizationService _orgService;
_orgService = (IOrganizationService)conn.OrganizationWebProxyClient != null ? (IOrganizationService)conn.OrganizationWebProxyClient : (IOrganizationService)conn.OrganizationServiceProxy;
Thank you :)
*This post is locked for comments
I have the same question (0)