/// Summary description for Class1.
/// The main entry point for the application.
> I don't know how soap works....I never used it...
> can you post some example?
>
> "José Joye" <jose.joye@__No_SPam__bluewin__maPS_oN__.ch> schrieb im
> Newsbeitrag news:OQLQQZk0DHA.716@TK2MSFTNGP12.phx.gbl...
> > BTW, is there any reason why you use XML Serialization instead of SOAP
> > serialization (using the SOAP formatter)?
> > I gave a try with the soap one and all is fine
> >
> >
> > José
> >
> > "Dirk Reske" <_Freak.2k@gmx.net> a écrit dans le message de
> > news:O10IFBk0DHA.1708@TK2MSFTNGP12.phx.gbl...
> > > No it doesn't work.
> > >
> > > But, when I serialize the structure, all works fine.
> > > I get this error only at deserializing....
> > >
> > > "José Joye" <jose.joye@__No_SPam__bluewin__maPS_oN__.ch> schrieb im
> > > Newsbeitrag news:OcaRJ2j0DHA.1660@TK2MSFTNGP09.phx.gbl...
> > > > Don't you need to put the [Serializable] attribute in front of (at
> > least)
> > > > Users?
> > > >
> > > > José
> > > >
> > > > "Dirk Reske" <_Freak.2k@gmx.net> a écrit dans le message de
> > > > news:eVDMqvj0DHA.2752@TK2MSFTNGP09.phx.gbl...
> > > > > Hello,
> > > > >
> > > > > I have following structs
> > > > >
> > > > > public struct User
> > > > > {
> > > > > public string Username;
> > > > > public string Password;
> > > > > public string[] Permissions;
> > > > > }
> > > > >
> > > > > public struct Users
> > > > > {
> > > > > public User[] RemoteUsers;
> > > > > }
> > > > >
> > > > > when I Serialize a Users struct I get following File
> > > > >
> > > > > <?xml version="1.0" encoding="utf-8" ?>
> > > > > <Users xmlns:xsd="
http://www.w3.org/2001/XMLSchema" > > > > > xmlns:xsi="
http://www.w3.org/2001/XMLSchema-instance"> > > > > > <RemoteUsers>
> > > > > <User>
> > > > > <Username>Admin</Username>
> > > > > <Password>21232F297A57A5A743894A0E4A801FC3</Password>
> > > > > <Permissions>
> > > > > <string>All</string>
> > > > > </Permissions>
> > > > > </User>
> > > > > </RemoteUsers>
> > > > > </Users>
> > > > >
> > > > > all is OK I think..
> > > > >
> > > > > but when I deserialize it using Users users =
> > > > > (Users)serializer.Deserialize(streamReader));
> > > > > I get following error:
> > > > >
> > > > > Error in XML-document (2,2).
> > > > > at
System.Xml.Serialization.XmlSerializer.Deserialize(XmlReader
> > > > > xmlReader, String encodingStyle)
> > > > > at
System.Xml.Serialization.XmlSerializer.Deserialize(TextReader
> > > > > textReader)
> > > > > at Remote.Users.UserControl.LoadUsers()
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>