aggieben / xmlrpcnet

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

Public static fields which are not XML-RPC serializable cause the serialzer to throw an exception. #76

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Create a class/struct that contains a public static field of a type which is 
not XML-RPC serializable
2. Craete a service with a method which returns this class/struct
3. Invoke the method

What is the expected output? What do you see instead?
The method should be serialized correctly, however an exception is thrown that 
the type is not XML-RPC serializable.

The bug is in the GetXmlRpcType(Type t, Stack typeStack) method in 
XmlRpcServiceInfo.cs. When enumerating fields, it should skip static ones. It 
checks them for validity instead.

Original issue reported on code.google.com by ivail...@gmail.com on 15 Oct 2010 at 12:25