【发布时间】:2018-12-19 14:03:48
【问题描述】:
我正在使用 PHP SDK https://github.com/Rocketeer007/php-dynamics-crm-2011 连接 Dynamics CRM 并尝试在查找字段中设置空值但没有成功。以下是 SOAP 请求和响应数据
请求
<?xml version="1.0" encoding="UTF-8"?>
<Update xmlns="http://schemas.microsoft.com/xrm/2011/Contracts/Services" xmlns:b="http://schemas.microsoft.com/xrm/2011/Contracts" xmlns:i="http://www.w3.org/2001/XMLSchema-instance">
<entity>
<b:Attributes xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic">
<b:KeyValuePairOfstringanyType>
<c:key>key name</c:key>
<c:value xmlns:d="http://www.w3.org/2001/XMLSchema" i:type="d:string">Test</c:value>
</b:KeyValuePairOfstringanyType>
<b:KeyValuePairOfstringanyType>
<c:key>Entity Name</c:key>
<c:value i:type="b:EntityReference">
<b:Id i:nil="true" />
<b:LogicalName>Lookup Entity Name</b:LogicalName>
<b:Name i:nil="true" />
</c:value>
</b:KeyValuePairOfstringanyType>
</b:Attributes>
<b:EntityState i:nil="true" />
<b:FormattedValues xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
<b:Id>guild</b:Id>
<b:LogicalName>entity name</b:LogicalName>
<b:RelatedEntities xmlns:c="http://schemas.datacontract.org/2004/07/System.Collections.Generic" />
</entity>
</Update>
回应
未捕获的 SoapFault 异常:[Sender] 格式化程序在尝试反序列化消息时抛出异常
我在这里做错了什么?
【问题讨论】:
标签: php dynamics-crm