wbrussell / xmlrpcnet

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

Exception when serializing a string containing a '.' character #106

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. Define a method which has a string argument
2. Call the method with the value "." for the string argument

What is the expected output? What do you see instead?
A Exception with following text:
{"Unable to serialize string to XML: '.', hexidezimaler Wert 0xFFFF, ist ein 
ungültiges Zeichen."}

What version of the product are you using? On what operating system?
xml-rpc.net.3.0.0.270-snapshot on Windows 7

Please provide any additional information below.
The StackTrace for the exception is:
   bei CookComputing.XmlRpc.XmlRpcSerializer.SerializeString(XmlWriter xtw, Object o) in xml-rpc.net\src\XmlRpcSerializer.cs:Zeile 306.
   bei CookComputing.XmlRpc.XmlRpcSerializer.Serialize(XmlWriter xtw, Object o, MappingActions mappingActions, List`1 nestedObjs) in xml-rpc.net\src\XmlRpcSerializer.cs:Zeile 199.
   bei CookComputing.XmlRpc.XmlRpcSerializer.Serialize(XmlWriter xtw, Object o, MappingActions mappingActions, List`1 nestedObjs) in xml-rpc.net\src\XmlRpcSerializer.cs:Zeile 136.
   bei CookComputing.XmlRpc.XmlRpcSerializer.Serialize(XmlWriter xtw, Object o, MappingActions mappingActions) in xml-rpc.net\src\XmlRpcSerializer.cs:Zeile 105.
   bei CookComputing.XmlRpc.XmlRpcRequestSerializer.SerializeParams(XmlWriter xtw, XmlRpcRequest request, MappingActions mappingActions) in xml-rpc.net\src\XmlRpcRequestSerializer.cs:Zeile 119.
   bei CookComputing.XmlRpc.XmlRpcRequestSerializer.SerializeRequest(Stream stm, XmlRpcRequest request) in xml-rpc.net\src\XmlRpcRequestSerializer.cs:Zeile 62.
   bei CookComputing.XmlRpc.XmlRpcClientProtocol.Invoke(Object clientObj, MethodInfo mi, Object[] parameters) in xml-rpc.net\src\XmlRpcClientProtocol.cs:Zeile 139.
[snip]

See also:
http://msdn.microsoft.com/en-us/library/k1y7hyy9%28v=vs.71%29.aspx
http://blogs.msdn.com/b/kaevans/archive/2004/04/19/116327.aspx

Original issue reported on code.google.com by licht...@gmail.com on 28 Mar 2013 at 5:48