Now we will see how the same task is accomplished in CRM 2011
If we put it in a method;
public static IOrganizationService getService() { ClientCredentials _cred = new ClientCredentials(); _cred.Windows.ClientCredential = new NetworkCredential("CRM_ADMIN_01", "F1xit@OR5", "CRMBIZDOMAIN"); string _url = "http://crmbiz:5555/abcltd/XRMServices/2011/Organization.svc"; OrganizationServiceProxy serviceProxy = new OrganizationServiceProxy(new Uri(_url), null, _cred, null); return (IOrganizationService)serviceProxy; }
Now the calling part;