2010-11-24 69 views
1

我想通过一个SOAP消息Dynamics CRM 4.0的 以下SOAP消息我张贴到执行AppointmentRequest:AppointRequest与SOAP消息发送到MS Dynamics CRM 4.0的

<?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> 

任何有此经验的人? 如果有人可以帮我或给我提示,我会非常感谢

谢谢!

回答