创建WebService使用的类
a.为class指定默认命名空间
[System.Xml.Serialization.XmlTypeAttribute(Namespace="http://xxxxxxx",IsNullable=false)]
b.为定义的字段添加属性定义
[System.Xml.Serialization.XmlElementAttribute(From=System.Xml.Schema.XmlSchemaForm.Unqualified)]
public string MyName;
文章来源:http://ms.mblogger.cn/xuzhong/posts/4948.aspx