
I am currently working on a project to upgrade from crm 2011 to 2016. I am CrmServiceUtil to generate my early bound classes to replace the existing 2011 EB classes. I also see an asmx service that is being used which I believe is depricated after 2011. I am trying to figure out my options. Should I be using 2011/Organization.svc or if there is any easy solution to this.
This is my code on how 2007/crmservice.asmx is being called to get the CrmService for 2011.
//MSCRM is the name of the web service reference
public static MSCRM.CrmService getService(String CRMUrl, String CRMOrganizationName, String CredentialUsername, String CredentialPassword, String CredentialDomain)
{
var token = new MSCRM.CrmAuthenticationToken();
token.AuthenticationType = 0;
token.OrganizationName = CRMOrganizationName;
var service = new MSCRM.CrmService();
service.Url = CRMUrl + "mscrmservices/2007/crmservice.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = new System.Net.NetworkCredential(CredentialUsername, CredentialPassword, CredentialDomain);
return service;
}
*This post is locked for comments
I have the same question (0)Hello,
Unfortunately you will have to rewrite all your code to support new assemblies, entities and endpoint.