murugesun
11-25-2009, 04:09 AM
I am having issues with adding new records to the CRM using Microsoft web services. Im getting the following error message, System.Web.Services.Protocols.SoapHttpClientProtocol.ReadResponse(SoapClientMessage message, WebResponse response, Stream responseStream, Boolean asyncCall) at System.Web.Services.Protocols.SoapHttpClientProtocol.Invoke(String methodName, Object[] parameters) at CrmService.Create(BusinessEntity entity)
Sample code :
CrmAuthenticationToken token = new CrmAuthenticationToken(); token.AuthenticationType = 0;
token.OrganizationName = "OrgName";
CrmService service = new CrmService();
service.Url = "http://test.com:8083/mscrmservices/2007/CrmService.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = new System.Net.NetworkCredential("UserName","Password","Domain");
contact SampleContact = new contact();
SampleContact.firstname = "FirstName";
SampleContact.lastname = "LastName";
SampleContact.telephone1 = "123-123";
SampleContact.emailaddress1 = "Emailprotected";
service.Create(SampleContact);
Can any one please suggest me.
Thanks in advance.
Sample code :
CrmAuthenticationToken token = new CrmAuthenticationToken(); token.AuthenticationType = 0;
token.OrganizationName = "OrgName";
CrmService service = new CrmService();
service.Url = "http://test.com:8083/mscrmservices/2007/CrmService.asmx";
service.CrmAuthenticationTokenValue = token;
service.Credentials = new System.Net.NetworkCredential("UserName","Password","Domain");
contact SampleContact = new contact();
SampleContact.firstname = "FirstName";
SampleContact.lastname = "LastName";
SampleContact.telephone1 = "123-123";
SampleContact.emailaddress1 = "Emailprotected";
service.Create(SampleContact);
Can any one please suggest me.
Thanks in advance.