我試圖從crm4環境中的合同實體下載附件和備註以上傳到crm 2011環境。服務中的SOAP異常。提取
我在行得到一個SOAP異常(//字符串結果= service.Fetch(sfetch);)
// --------- Server Name -----------
string OrgName = "USF";
string CrmSite = "http://crm4";
string TmpFolder = "C:\\TempAnnotation\\";
CrmAuthenticationToken token = new CrmAuthenticationToken();
token.AuthenticationType = 0;
token.OrganizationName = OrgName;
CrmService service = new CrmService();
service.Url = CrmSite + "/mscrmservices/2007/crmservice.asmx";
service.CrmAuthenticationTokenValue = token;
//service.Credentials = System.Net.CredentialCache.DefaultCredentials;
service.Credentials = new System.Net.NetworkCredential("username", "password", "domain");
string sfetch = @"<fetch mapping='logical'><entity name='contract'>
<attribute name='modifiedon' />
<attribute name='title' />
<link-entity name='annotation' from='objectid' to='contractid'>
<attribute name='annotationid'/>
<attribute name='createdon'/>
<attribute name='createdby'/>
<attribute name='documentbody'/>
<attribute name='filename'/>
<attribute name='isdocument'/>
<attribute name='mimetype'/>
<attribute name='notetext'/>
</link-entity>
</entity>
</fetch>
";
String result = service.Fetch(sfetch);
System.Web.Services.Protocols.SoapException未處理 Message = Server無法處理請求。 來源= System.Web.Services 演員=「」 Lang =「」 Node =「」 Role =「」 – maatthias 2012-02-28 17:14:16
是否有可能超過10000條記錄的結果? – arunes 2012-02-29 09:08:33