omar7r / xmlrpcnet

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

enum - CookComputing.XmlRpc.XmlRpcUnsupportedTypeException #42

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
am getting the following error when i tried to pass an enum as a parameter...
any help would appreciate...

CookComputing.XmlRpc.XmlRpcUnsupportedTypeException: A parameter is of, or
contains an instance of, type Aeturnum.Extenders.Common.FileState which
cannot be mapped to an XML-RPC

Original issue reported on code.google.com by arjuna.d...@gmail.com on 5 Nov 2008 at 11:15

GoogleCodeExporter commented 8 years ago
Hello,

I also know this "effect". The exception is thrown when you try to send an 
enum-type
(what your FileState seems to be). 

So this is because enum's in general are not declared / specified as data-types 
in
the XmlRpc specification. So the behaviour of the Cook-Library is correct.

But it would be nice if the serializer automatically serializes an enum to a 
string
or int and back. 

Regards

Thomas

Original comment by froori...@gmail.com on 21 Nov 2008 at 2:29

GoogleCodeExporter commented 8 years ago

Original comment by ChasC...@gmail.com on 19 Dec 2008 at 1:59

GoogleCodeExporter commented 8 years ago
Future release

Original comment by ChasC...@gmail.com on 6 Mar 2011 at 10:10