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

相关文章:

  • 2021-11-24
  • 2021-08-19
  • 2021-07-27
  • 2021-10-29
  • 2022-03-06
  • 2021-07-27
  • 2022-12-23
猜你喜欢
  • 2022-01-04
  • 2022-12-23
  • 2021-08-27
  • 2021-05-16
  • 2021-11-14
  • 2021-12-14
  • 2022-12-23
相关资源
相似解决方案