enguer / xmlrpcnet

Automatically exported from code.google.com/p/xmlrpcnet
0 stars 0 forks source link

Support members with missing value #57

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
OpenX ( http://www.openx.org/ ) returns some members without value, e.g.:

<?xml version="1.0" encoding="UTF-8"?>
<methodResponse>
<params>
<param>
<value><struct>
<member><name>bannerId</name>
<value><int>20</int></value>
</member>
[snip]
<member><name>aImage</name>
</member>
<member><name>aBackupImage</name>
</member>
</struct></value>
</param>
</params>
</methodResponse>

Currently, XML-RPC.NET throws an exception when parsing this response:

XmlRpcInvalidXmlRpcException: response contains struct member aImage with
missing value [response : struct mapped to type XmlRpcStruct]

A custom attribute would be nice to tell XML-RPC.NET to just ignore these 
missing values, instead of throwing.

Original issue reported on code.google.com by mauricio...@gmail.com on 3 Aug 2009 at 4:57

GoogleCodeExporter commented 8 years ago

Original comment by ChasC...@gmail.com on 4 Aug 2009 at 8:33

GoogleCodeExporter commented 8 years ago
Use XmlRpcMissingMapping attribute on the member that might be missing.

Original comment by ChasC...@gmail.com on 22 May 2010 at 3:55