[BTS]创建WebService时应该注意的问题

 

创建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

posted on 2006-08-16 16:17  徐中  阅读(342)  评论(0编辑  收藏  举报

导航