web services boolean attribute
-
I write a web service with a boolean attribute: public class XXX { [XmlAttribute] public bool yyy; ... .... } I dont' understand why the field yyy isn't serialized. If I omit the [XmlAttribute] all works fine but yyy become clearly an element. can somebody help me please? I'm sorry for my english, I hope you can understand.
-
I write a web service with a boolean attribute: public class XXX { [XmlAttribute] public bool yyy; ... .... } I dont' understand why the field yyy isn't serialized. If I omit the [XmlAttribute] all works fine but yyy become clearly an element. can somebody help me please? I'm sorry for my english, I hope you can understand.
Hi there, Are you sure that your object is simple like that? Do you use the XXX object as a result of the web method or you simply want to serialize this object in the web service? IMO, the link below might give you a hint: XML and SOAP Serialization[^]
-
Hi there, Are you sure that your object is simple like that? Do you use the XXX object as a result of the web method or you simply want to serialize this object in the web service? IMO, the link below might give you a hint: XML and SOAP Serialization[^]
Thaks a lot for the reply, my object is not simple like that, but I don't think there is somethings that cause the error (I haven't any problems with the rest), my problem is only for boolean attribute. I just want serialize my XXX object in the web application that use the web service (I yet have a referenze in the application). I repeat all works perfectly but if I add the [XmlAttribute] tag to a boolean fields, this don't will be serialized. Thanks
-
I write a web service with a boolean attribute: public class XXX { [XmlAttribute] public bool yyy; ... .... } I dont' understand why the field yyy isn't serialized. If I omit the [XmlAttribute] all works fine but yyy become clearly an element. can somebody help me please? I'm sorry for my english, I hope you can understand.