【问题标题】:AppointRequest with SOAP message to MS Dynamics CRM 4.0带有 SOAP 消息的 ApppointRequest 到 MS Dynamics CRM 4.0
【发布时间】:2011-04-03 05:37:17
【问题描述】:

我想通过 SOAP 消息向 Dynamics CRM 4.0 执行 AppointmentRequest 我发布的以下 SOAP 消息:

<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:m0="http://schemas.microsoft.com/crm/2007/CoreTypes" xmlns:m="http://schemas.microsoft.com/crm/2007/WebServices" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
  <soap:Header>
    <m:CrmAuthenticationToken>
      <m0:AuthenticationType>0</m0:AuthenticationType>
      <m0:OrganizationName>MyOrg</m0:OrganizationName>
      <m0:CallerId>4d6792b2-d96f-de11-bc90-005056a243de</m0:CallerId>
    </m:CrmAuthenticationToken>
  </soap:Header>
  <soap:Body>
    <m:Execute>
      <m:request xsi:type="SearchRequest">
        <AppointmentRequest>
          <ServiceId>7b94C2A1D8-C201-DE11-B7B1-0022640DEB74</ServiceId>
        </AppointmentRequest>
      </m:request>
    </m:Execute>
  </soap:Body>
</soap:Envelope>

我收到来自 CRM 的错误消息:

<?xml version="1.0" encoding="utf-8"?><soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"><soap:Body><soap:Fault><faultcode>soap:Server</faultcode><faultstring>Server was unable to process request.</faultstring><detail><error>
  <code>0x80040203</code>
  <description>request</description>
  <type>Platform</type>
</error></detail></soap:Fault></soap:Body></soap:Envelope>

有这方面经验的人吗? 如果有人可以帮助我或给我提示,我将非常感激

谢谢!

【问题讨论】:

    标签: soap dynamics-crm webservice-client


    【解决方案1】:

    错误代码0x80040203 表示InvalidArgument。查看Error Codes的列表。

    启用跟踪(请参阅How to enable tracing in Microsoft Dynamics CRM),它可以为您提供有关问题所在的更多信息。

    【讨论】:

      猜你喜欢
      • 2012-05-21
      • 1970-01-01
      • 2010-09-07
      • 1970-01-01
      • 2019-02-25
      • 2016-02-12
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多