Are strings not serializable?
SerializerService
erializeToXmlWriter. Exception:Type does not have a root element name so it can't be serialized
ystem.String
SerializerService
erializeToXmlWriter. Exception:Type does not have a root element name so it can't be serialized
ystem.String
Bodies with string members are definately serializable (most of our samples have data types with string fields).
Make sure your class, that is your body for your operation, has the following attrbutes
1) DataContract on the class definition
2) DataMember on the field in question
[DataContract]
public class PerformActionRequest {
[DataMember]
public string ActionName;
}
I notice that a lot of the samples have a property member instead of a field member. Should I be using a property instead or is that just a matter of choice?