You're using ASMX 2.0 in Whidbey. You want to write a service that uses one of these classes:
public class Person1
{
public string name;
[XmlAnyElement]
XmlElement[] any;
}
public class Person2
{
public string? name;
[XmlAnyElement]
XmlElement[] any;
}
public class Person3
{
[XmlElement(IsNillable=false)]
public string? name;
[XmlAnyElement]
XmlElement[] any;
}
Which of these three variations on a Person class will not violate UPA? If more than one does not violate UPA, rank them based on likelihood of interop problems, with most interoperable first.
Posted
Mar 04 2005, 01:54 PM
by
tim-ewald