To follow up after a more thorough investigation it seems that JSON is indeed the limitation here. It seems if I create a converter with supported type as type of class B. Serialize function is called to serialize the object to JSON. However on the return side Deserialize is never called for this object. I am not sure on the implementation details of the Atlas server side libraries so I am guessing this is JSON limitation but again it would be great if there is a relaxed mode that simply attempts to use the expected type and call the Deserialize method even though the type is unknown (as I am guessing) with the expected type (in this example it would be type B).
AO
Try adding an [XmlInclude(your type)] to your webmethod that might solve everything...
Hope that helps,
-Hao
No comments:
Post a Comment