jwaterworth / php-dynamics-crm-2011

Automatically exported from code.google.com/p/php-dynamics-crm-2011
0 stars 0 forks source link

Handle the "memo" field type #16

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
The field "Description" on an "Incident" is of type "memo".  This type appears 
to need special handling in a "Create" message at least.

[Sender] The formatter threw an exception while trying to deserialize the 
message: There was an error while trying to deserialize parameter 
http://schemas.microsoft.com/xrm/2011/Contracts/Services:entity. The 
InnerException message was 'Error in line 1 position 13225. Element 
'http://schemas.datacontract.org/2004/07/System.Collections.Generic:value' 
contains data from a type that maps to the name 
'http://www.w3.org/2001/XMLSchema:memo'. The deserializer has no knowledge of 
any type that maps to this name. Consider changing the implementation of the 
ResolveName method on your DataContractResolver to return a non-null value for 
name 'memo' and namespace 'http://www.w3.org/2001/XMLSchema'.'.  Please see 
InnerException for more details.

Original issue reported on code.google.com by N.M.Pr...@gmail.com on 19 Mar 2012 at 5:01

GoogleCodeExporter commented 9 years ago
Needs to be done

Original comment by N.M.Pr...@gmail.com on 19 Mar 2012 at 5:09

GoogleCodeExporter commented 9 years ago
I'll pick this one up today

Original comment by N.M.Pr...@gmail.com on 20 Mar 2012 at 12:08

GoogleCodeExporter commented 9 years ago
Analysis from .NET using Fiddler:
Memo fields are just sent as String in Create & Update XML:

<b:KeyValuePairOfstringanyType>
    <c:key>description</c:key>
    <c:value i:type="d:string" xmlns:d="http://www.w3.org/2001/XMLSchema">This is a test of a Description, I hope it's this simple!</c:value>
</b:KeyValuePairOfstringanyType>

Original comment by N.M.Pr...@gmail.com on 20 Mar 2012 at 12:34

GoogleCodeExporter commented 9 years ago
Fixed & Tested

Original comment by N.M.Pr...@gmail.com on 20 Mar 2012 at 2:30