0
我試圖從客戶端CRM服務器檢索一些數據。嘗試從MS CRM 4.0獲取數據時發生SOAP錯誤
我目前面臨的主要問題是我可以使用的憑據對系統的權限有限。因此,我不能使用更新的Xrm
類。
所以我決定嘗試一種更基本的方法:
CrmAuthenticationToken token = new CrmAuthenticationToken();
token.OrganizationName = "OrganizationName";
token.AuthenticationType = 0;
Microsoft.Crm.SdkTypeProxy.CrmService service = new Microsoft.Crm.SdkTypeProxy.CrmService();
service.CrmAuthenticationTokenValue = token;
service.Url = "http://serverIp/mscrmservices/2007/crmservice.asmx"; //I've also tried to use <serverIp>/<OrganizationName>
service.Credentials = new NetworkCredential("user", "pass", "domain");
string fetch = @"<fetch mapping='logical'><entity name='account'><attribute name='accountid'></entity></fetch>";
string result = service.Fetch(fetch);
不過,我得到一個通用的Server was unable to process the request
,沒有進一步的信息。我檢查了CRM服務器上的事件日誌,發現沒有任何興趣。可能會發生什麼?
哦,我...我想我的咖啡污點。這顯然使我失望。 :(感謝您發現錯誤! – Shaamaan