TOP

wsdl 关于nillable和minOccurs 在.NET和java中的不同(五)
2019-09-03 03:26:46 】 浏览:74
Tags:wsdl 关于 nillable minOccurs .NET java 不同

lable="true"/>       <element name="id4" type="long" minOccurs="1" nillable="false"/>       <element name="name1" type="string" minOccurs="0" nillable="true"/>       <element name="name2" type="string" minOccurs="0" nillable="false"/>       <element name="name3" type="string" minOccurs="1" nillable="true"/>       <element name="name4" type="string" minOccurs="1" nillable="false"/>     </sequence>   </complexType>     <complexType name="PersonResponse">     <sequence>       <element name="id" type="string" minOccurs="0"/>     </sequence>   </complexType>     <element name="GetPerson" type="sys:Person"></element>   <element name="GetPersonResponse" type="sys:PersonResponse"></element> </schema>

id对应的是值类型,name对应的是引用类型
3.1.2 生成数据类

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.18058")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://com.csii.bank.core/system")]
    public partial class Person{
                
        private System.Nullable<long> id1Field;
        
        private bool id1FieldSpecified;
        
        private long id2Field;
        
        private bool id2FieldSpecified;
        
        private System.Nullable<long> id3Field;
        
        private long id4Field;
        
        private string name1Field;
        
        private string name2Field;
        
        private string name3Field;
        
        private string name4Field;
                
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public System.Nullable<long> id1 {
            get {
                return this.id1Field;
            }
            set {
                this.id1Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool id1Specified {
            get {
                return this.id1FieldSpecified;
            }
            set {
                this.id1FieldSpecified = value;
            }
        }
        
        /// <remarks/>
        public long id2 {
            get {
                return this.id2Field;
            }
            set {
                this.id2Field = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIgnoreAttribute()]
        public bool id2Specified {
            get {
                return this.id2FieldSpecified;
            }
            set {
                this.id2FieldSpecified = value;
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute(IsNullable=true)]
        public System.Nullable<long> id3 {
            get {
                return this.id3Field;
            }
            set {
                this.id3Field = value;
            }
        }
        
        /// <remarks/>
        public long id4 {
            get {
                return this.id4Field;
            }
            set {
                this.id4Field = value;
            }
        }
        
        /// &l  
		
wsdl 关于nillable和minOccurs 在.NET和java中的不同(五) https://www.cppentry.com/bencandy.php?fid=106&id=248909

首页 上一页 2 3 4 5 6 7 8 下一页 尾页 5/11/11
】【打印繁体】【投稿】【收藏】 【推荐】【举报】【评论】 【关闭】 【返回顶部
上一篇《深入.NET平台和C#编程》内部测.. 下一篇.NET中使用反射访问属性方法