To make this happen ....you will have to add two .cs files from the crm2011's sdk
1. crmservicehelpers.cs
2.myorganizationcrmsdktypes.cs
ClientCredentials creds = new ClientCredentials();
creds.Windows.ClientCredential = new System.Net.NetworkCredential("administrator", "password", "domain");
OrganizationServiceProxy _service = new OrganizationServiceProxy(
new Uri("http://crm2011:5555/crm2011/XRMServices/2011/Organization.svc"),
null,
creds,
null);
//
_service.ServiceConfiguration.CurrentServiceEndpoint.Behaviors.Add(new ProxyTypesBehavior());
OrganizationServiceContext orgContext =
new OrganizationServiceContext(_service);
No comments:
Post a Comment