1
나는 아래의 코드를 사용, CRM 물건을 개발하려고 :다이나믹 CRM 4.0 SOAP 예외
"가능한 SOAP 버전이 일치 : 봉투
public static CrmService GetCrmService() { //Standard CRM setup var authenticationToken = new CrmAuthenticationToken(); //Using the active directory authenticationToken.AuthenticationType = 0; authenticationToken.OrganizationName = "myorganizationName"; var crmService = new CrmService(); crmService.PreAuthenticate = true; crmService.UseDefaultCredentials = false; crmService.CrmAuthenticationTokenValue = authenticationToken; crmService.Credentials = new NetworkCredential("username", "password", "domain"); crmService.Url = "http://<ourserver>/mscrmservices/2007/CrmServiceWsdl.aspx"; return crmService; } public void RetrieveAccount() { var accountGuid = new Guid("088FFC38-8285-4AF5-8E36-84BAD6B268ED"); var crmService = GetCrmService(); //Set the column to return var returnedColumns = new ColumnSet(); returnedColumns.Attributes = new string[] { "name", "telephone1", "customertypecode" }; try { var receivedAccount = crmService.Retrieve(EntityName.account.ToString(), accountGuid, returnedColumns) as account; if (receivedAccount != null) { Debug.WriteLine(string.Format("Name: {0}, Telephone: {1}", receivedAccount.name, receivedAccount.telephone1)); } } catch (Exception exception) { Debug.WriteLine(exception.Message); } }
그것은 다음과 같은 예외와 함께 온다 네임 스페이스 http://schemas.xmlsoap.org/wsdl/이 예기치 http://schemas.xmlsoap.org/soap/envelope/입니다. "
이 문제를 해결할만한 해결책이 있습니까?
미리 감사드립니다.