[Mono-list] Serialize Error
Thempra
thempra at ieee.org
Mon Oct 22 10:41:15 EDT 2007
Nas,
I'm migrated a WebService of .NET to Mono. I search and, search but I
don't have a solution, now I work with XSP2 in Debian with Mono 1.2.5.1 and
publish since Visual Studio 2005. I can't deserialize a XML that I get of "
*UrlOrigen*" and put it in *CLASEGENERADA*, It's jump a Excepcion with
message *parameters*.
The source code of webservice:
*StreamReader sr = new StreamReader(UrlOrigen);
XmlSerializer xs = new XmlSerializer(typeof(CLASEGENERADA));
CLASEGENERADA objeto= (CLASEGENERADA)xs.Deserialize(sr);*
The object of xsd.exe is:
*using System.Xml.Serialization;*
*// *
*// This source code was auto-generated by xsd, Version=2.0.50727.42.*
*// *
*[System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "2.0.50727.42")]*
*[System.SerializableAttribute()]*
*[System.Diagnostics.DebuggerStepThroughAttribute()]*
*[System.ComponentModel.DesignerCategoryAttribute("code")]*
*[System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true, Namespace=
"http://www.xxxxxxxx.xxx/Xxxxx" <http://www.xxxxxxxx.xxx/Xxxxx>)]*
*[System.Xml.Serialization.XmlRootAttribute(Namespace=
"http://www.xxxxxx.xxx/Xxxxxx" <http://www.xxxxxx.xxx/Xxxxxx>,
IsNullable=false)]*
*public partial class CLASEGENERADA*
*{*
* ...............*
*.............*
Is Deserialize of XML fully implemented ??, what is my mistake?? I don't
find the error :(. Thx.
*
*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20071022/0e53ea50/attachment-0001.html
More information about the Mono-list
mailing list