none
XML serialization to return an array of String RRS feed

  • Question

  • My current XML response is as shown below(only important parts are shown).I have added service reference which have generated some proxy classes for me which unfortunately are not returning the output as needed.The c# code below only return the last "values" data. What i eventually want is to have arrays of "values" that i will display in a gridview.

    <return>
    <fields></fields>
    <fields></fields>
    <fields></fields>
    <values> 
       <value></value>
       <value></value>
       <value></value>
    </values>
    <values> 
       <value></value>
       <value></value>
       <value></value>
    </values>

    //proxy class

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
        [System.ServiceModel.ServiceContractAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/", ConfigurationName="SoapService.queryWebServiceSoapPort")]
        public interface queryWebServiceSoapPort {
            
            // CODEGEN: Generating message contract since the operation query is neither RPC nor document wrapped.
            [System.ServiceModel.OperationContractAttribute(Action="query", ReplyAction="*")]
            [System.ServiceModel.XmlSerializerFormatAttribute(SupportFaults=true)]
            [System.ServiceModel.ServiceKnownTypeAttribute(typeof(baseWebServiceOutput))]
            Infohighway.SoapService.queryResponse1 query(Infohighway.SoapService.query1 request);
            
            [System.ServiceModel.OperationContractAttribute(Action="query", ReplyAction="*")]
            System.Threading.Tasks.Task<Infohighway.SoapService.queryResponse1> queryAsync(Infohighway.SoapService.query1 request);
        }
        
        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/")]
        public partial class query : object, System.ComponentModel.INotifyPropertyChanged {
            
            private qwsInput queryInputField;
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
            public qwsInput queryInput {
                get {
                    return this.queryInputField;
                }
                set {
                    this.queryInputField = value;
                    this.RaisePropertyChanged("queryInput");
                }
            }
            
            public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
            
            protected void RaisePropertyChanged(string propertyName) {
                System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
                if ((propertyChanged != null)) {
                    propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
                }
            }
        }
        
        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/")]
        public partial class qwsInput : object, System.ComponentModel.INotifyPropertyChanged {
            
            private string userIdField;
            
            private string passField;
            
            private string queryIdField;
            
            private qwsInputParam[] qwsInputParamsField;
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
            public string userId {
                get {
                    return this.userIdField;
                }
                set {
                    this.userIdField = value;
                    this.RaisePropertyChanged("userId");
                }
            }
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
            public string pass {
                get {
                    return this.passField;
                }
                set {
                    this.passField = value;
                    this.RaisePropertyChanged("pass");
                }
            }
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=2)]
            public string queryId {
                get {
                    return this.queryIdField;
                }
                set {
                    this.queryIdField = value;
                    this.RaisePropertyChanged("queryId");
                }
            }
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute("qwsInputParams", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=3)]
            public qwsInputParam[] qwsInputParams {
                get {
                    return this.qwsInputParamsField;
                }
                set {
                    this.qwsInputParamsField = value;
                    this.RaisePropertyChanged("qwsInputParams");
                }
            }
            
            public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
            
            protected void RaisePropertyChanged(string propertyName) {
                System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
                if ((propertyChanged != null)) {
                    propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
                }
            }
        }
        
        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/")]
        public partial class qwsInputParam : object, System.ComponentModel.INotifyPropertyChanged {
            
            private string fieldField;
            
            private string[] valuesField;
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
            public string field {
                get {
                    return this.fieldField;
                }
                set {
                    this.fieldField = value;
                    this.RaisePropertyChanged("field");
                }
            }
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute("values", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=1)]
            public string[] values {
                get {
                    return this.valuesField;
                }
                set {
                    this.valuesField = value;
                    this.RaisePropertyChanged("values");
                }
            }
            
            public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
            
            protected void RaisePropertyChanged(string propertyName) {
                System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
                if ((propertyChanged != null)) {
                    propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
                }
            }
        }
        
        /// <remarks/>
        [System.Xml.Serialization.XmlIncludeAttribute(typeof(qwsOutput))]
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/")]
        public partial class baseWebServiceOutput : object, System.ComponentModel.INotifyPropertyChanged {
            
            private string faultDescriptionField;
            
            private string statusCodeField;
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
            public string faultDescription {
                get {
                    return this.faultDescriptionField;
                }
                set {
                    this.faultDescriptionField = value;
                    this.RaisePropertyChanged("faultDescription");
                }
            }
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=1)]
            public string statusCode {
                get {
                    return this.statusCodeField;
                }
                set {
                    this.statusCodeField = value;
                    this.RaisePropertyChanged("statusCode");
                }
            }
            
            public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
            
            protected void RaisePropertyChanged(string propertyName) {
                System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
                if ((propertyChanged != null)) {
                    propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
                }
            }
        }
        
        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/")]
        public partial class qwsOutput : baseWebServiceOutput {
            
            private string[] fieldsField;
            
            private List<string[]> valuesField;
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute("fields", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=0)]
            public string[] fields {
                get {
                    return this.fieldsField;
                }
                set {
                    this.fieldsField = value;
                    this.RaisePropertyChanged("fields");
                }
            }
            
            /// <remarks/>
            [System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=1)]
            [System.Xml.Serialization.XmlArrayItemAttribute("value", typeof(string[]), Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public List<string[]> values {
                get
                {
                    return this.valuesField;
                }
                set {
                    this.valuesField=value;
                    this.RaisePropertyChanged("values");
                }
            }
        }
        
        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/")]
        public partial class queryResponse : object, System.ComponentModel.INotifyPropertyChanged {
            
            private qwsOutput returnField;
            
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, Order=0)]
            public qwsOutput @return {
                get {
                    return this.returnField;
                }
                set {
                    this.returnField = value;
                    this.RaisePropertyChanged("return");
                }
            }
            
            public event System.ComponentModel.PropertyChangedEventHandler PropertyChanged;
            
            protected void RaisePropertyChanged(string propertyName) {
                System.ComponentModel.PropertyChangedEventHandler propertyChanged = this.PropertyChanged;
                if ((propertyChanged != null)) {
                    propertyChanged(this, new System.ComponentModel.PropertyChangedEventArgs(propertyName));
                }
            }
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
        public partial class query1 {
            
            [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/", Order=0)]
            public Infohighway.SoapService.query query;
            
            public query1() {
            }
            
            public query1(Infohighway.SoapService.query query) {
                this.query = query;
            }
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
        [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
        [System.ServiceModel.MessageContractAttribute(IsWrapped=false)]
        public partial class queryResponse1 {
            
            [System.ServiceModel.MessageBodyMemberAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/", Order=0)]
            public Infohighway.SoapService.queryResponse queryResponse;
            
            public queryResponse1() {
            }
            
            public queryResponse1(Infohighway.SoapService.queryResponse queryResponse) {
                this.queryResponse = queryResponse;
            }
        }
        
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
        public interface queryWebServiceSoapPortChannel : Infohighway.SoapService.queryWebServiceSoapPort, System.ServiceModel.IClientChannel {
        }
        
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.ServiceModel", "4.0.0.0")]
        public partial class queryWebServiceSoapPortClient : System.ServiceModel.ClientBase<Infohighway.SoapService.queryWebServiceSoapPort>, Infohighway.SoapService.queryWebServiceSoapPort {
            
            public queryWebServiceSoapPortClient() {
            }
            
            public queryWebServiceSoapPortClient(string endpointConfigurationName) : 
                    base(endpointConfigurationName) {
            }
            
            public queryWebServiceSoapPortClient(string endpointConfigurationName, string remoteAddress) : 
                    base(endpointConfigurationName, remoteAddress) {
            }
            
            public queryWebServiceSoapPortClient(string endpointConfigurationName, System.ServiceModel.EndpointAddress remoteAddress) : 
                    base(endpointConfigurationName, remoteAddress) {
            }
            
            public queryWebServiceSoapPortClient(System.ServiceModel.Channels.Binding binding, System.ServiceModel.EndpointAddress remoteAddress) : 
                    base(binding, remoteAddress) {
            }
            
            [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
            Infohighway.SoapService.queryResponse1 Infohighway.SoapService.queryWebServiceSoapPort.query(Infohighway.SoapService.query1 request) {
                return base.Channel.query(request);
            }
            
            public Infohighway.SoapService.queryResponse query(Infohighway.SoapService.query query1) {
                Infohighway.SoapService.query1 inValue = new Infohighway.SoapService.query1();
                inValue.query = query1;
                Infohighway.SoapService.queryResponse1 retVal = ((Infohighway.SoapService.queryWebServiceSoapPort)(this)).query(inValue);
                return retVal.queryResponse;
            }
            
            [System.ComponentModel.EditorBrowsableAttribute(System.ComponentModel.EditorBrowsableState.Advanced)]
            System.Threading.Tasks.Task<Infohighway.SoapService.queryResponse1> Infohighway.SoapService.queryWebServiceSoapPort.queryAsync(Infohighway.SoapService.query1 request) {
                return base.Channel.queryAsync(request);
            }
            
            public System.Threading.Tasks.Task<Infohighway.SoapService.queryResponse1> queryAsync(Infohighway.SoapService.query query) {
                Infohighway.SoapService.query1 inValue = new Infohighway.SoapService.query1();
                inValue.query = query;
                return ((Infohighway.SoapService.queryWebServiceSoapPort)(this)).queryAsync(inValue);
            }
        }

     
         
    //code use to call soap request
    SoapService.queryWebServiceSoapPortClient client = new 
    SoapService.queryWebServiceSoapPortClient();
    client.ClientCredentials.UserName.UserName = userID;
    client.ClientCredentials.UserName.Password = Password;
    
    SoapService.qwsInput query1 = new SoapService.qwsInput();
    SoapService.queryResponse response = new 
    SoapService.queryResponse();
    
    query1.userId = userID;
    query1.pass = Password;
    query1.queryId = queryId;
    query1.qwsInputParams = InputParam;
    
    query a = new query();
    
    a.queryInput = query1;
    
    try
    {
        response = client.query(a);
    }
    catch (Exception error)
    {
    
        var b = error.ToString();
    }


    K.T



    • Edited by Keshav21 Tuesday, April 30, 2019 9:07 AM
    Tuesday, April 30, 2019 8:20 AM

Answers

  • Finally got my answer.

      /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://ws.server.mhaccess.crimsonlogic.com/")]
        public partial class qwsOutput : baseWebServiceOutput
        {
    
            private string[] fieldsField;
    
            //private string[][] valuesField;
    
            private object[] valuesField;
    
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute("fields", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 0)]
            public string[] fields
            {
                get
                {
                    return this.fieldsField;
                }
                set
                {
                    this.fieldsField = value;
                    this.RaisePropertyChanged("fields");
                }
            }
    
            ///// <remarks/>
            //[System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=1)]
            //[System.Xml.Serialization.XmlArrayItemAttribute("values", typeof(returnValues), Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    
            [System.Xml.Serialization.XmlElementAttribute("values", typeof(returnValues), Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 1)]
    
            public object[] values
            {
                get
                {
                    return this.valuesField;
                }
                set
                {
                    this.valuesField = value;
                    this.RaisePropertyChanged("values");
                }
            }
        }
    
    
    
    
    
    
        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
        public partial class returnValues
        {
    
            //private returnValuesValue[] valueField;
    
            private List<string> valueField;
    
            /// <remarks/>
    
            [System.Xml.Serialization.XmlElementAttribute("value", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public List<string>value
            {
                get
                {
                    return this.valueField;
                }
                set
                {
                    this.valueField = value;
                }
            }
        }


    K.T

    • Marked as answer by Keshav21 Friday, May 3, 2019 5:38 AM
    Friday, May 3, 2019 5:29 AM

All replies

  • For such problems concise and complete examples are necessary. Cause the error lies with in the entire serialized class, which you haven't posted.

    Well, the simple test: Create a XML file from your fragment, use the XSD utility to create a schema and the classes from it..

    //------------------------------------------------------------------------------
    // <auto-generated>
    //     This code was generated by a tool.
    //     Runtime Version:4.0.30319.42000
    //
    //     Changes to this file may cause incorrect behavior and will be lost if
    //     the code is regenerated.
    // </auto-generated>
    //------------------------------------------------------------------------------
    
    using System.Xml.Serialization;
    
    // 
    // This source code was auto-generated by xsd, Version=4.6.1055.0.
    // 
    
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    [System.Xml.Serialization.XmlRootAttribute(Namespace="", IsNullable=false)]
    public partial class @return {
        
        private object[] itemsField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("fields", typeof(returnFields), Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        [System.Xml.Serialization.XmlElementAttribute("values", typeof(returnValues), Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public object[] Items {
            get {
                return this.itemsField;
            }
            set {
                this.itemsField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    public partial class returnFields {
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    public partial class returnValues {
        
        private returnValuesValue[] valueField;
        
        /// <remarks/>
        [System.Xml.Serialization.XmlElementAttribute("value", Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
        public returnValuesValue[] value {
            get {
                return this.valueField;
            }
            set {
                this.valueField = value;
            }
        }
    }
    
    /// <remarks/>
    [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(AnonymousType=true)]
    public partial class returnValuesValue {
    }
    

    Tuesday, April 30, 2019 8:47 AM
  •  I have updated the question,adding the complete class


    K.T



    • Edited by Keshav21 Tuesday, April 30, 2019 9:41 AM
    Tuesday, April 30, 2019 9:09 AM
  • Hi Keshav21,

    >>What i eventually want is to have arrays of "values" that i will display in a gridview.

    Could you provide more details about the arrays of "values"?

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Thursday, May 2, 2019 7:42 AM
    Moderator
  • @Wendy Zang 

    What i actually meant is to able to read the multiple "values" being returned. Right now am able to read only the last "values".

    <values> 
       <value></value>
       <value></value>
       <value></value>
    </values>
    <values> 
       <value></value>
       <value></value>
       <value></value>
    </values>


    K.T

    Thursday, May 2, 2019 9:25 AM
  • I actually figure out how to get the number of "values" using stefan code. But now i can't get any value,its showing me count=0.

    /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace="http://ws.server.mhaccess.crimsonlogic.com/")]
        public partial class qwsOutput : baseWebServiceOutput {
            
            private string[] fieldsField;
    
            //private string[][] valuesField;
    
            private object[] valuesField;
    
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute("fields", Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=0)]
            public string[] fields {
                get {
                    return this.fieldsField;
                }
                set {
                    this.fieldsField = value;
                    this.RaisePropertyChanged("fields");
                }
            }
    
            ///// <remarks/>
            //[System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=1)]
            //[System.Xml.Serialization.XmlArrayItemAttribute("values", typeof(returnValues), Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
            [System.Xml.Serialization.XmlElementAttribute("values", typeof(returnValues), Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 1)]
    
            public object[] values {
                get {
                    return this.valuesField;
                }
                set {
                    this.valuesField = value;
                    //this.RaisePropertyChanged("values");
                }
            }
        }
    
    
    
    
    
    
        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
        public partial class returnValues
        {
    
            private returnValuesValue[] valueField;
    
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute("value", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public returnValuesValue[] value
            {
                get
                {
                    return this.valueField;
                }
                set
                {
                    this.valueField = value;
                }
            }
        }
    
    
    
        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
        public partial class returnValuesValue
        {
          
        }


    Thursday, May 2, 2019 12:10 PM
  • Hi Keshav21,

    Thanks for your sharing. Please mark the useful reply as answer. This will make answer searching easier in the forum and be beneficial to community members as well.

    Best Regards,

    Wendy


    MSDN Community Support
    Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact MSDNFSF@microsoft.com.

    Friday, May 3, 2019 1:56 AM
    Moderator
  • @Wendy Zang i only got half the answer till now. 

    K.T

    Friday, May 3, 2019 5:05 AM
  • Finally got my answer.

      /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.7.3056.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://ws.server.mhaccess.crimsonlogic.com/")]
        public partial class qwsOutput : baseWebServiceOutput
        {
    
            private string[] fieldsField;
    
            //private string[][] valuesField;
    
            private object[] valuesField;
    
            /// <remarks/>
            [System.Xml.Serialization.XmlElementAttribute("fields", Form = System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable = true, Order = 0)]
            public string[] fields
            {
                get
                {
                    return this.fieldsField;
                }
                set
                {
                    this.fieldsField = value;
                    this.RaisePropertyChanged("fields");
                }
            }
    
            ///// <remarks/>
            //[System.Xml.Serialization.XmlArrayAttribute(Form=System.Xml.Schema.XmlSchemaForm.Unqualified, IsNullable=true, Order=1)]
            //[System.Xml.Serialization.XmlArrayItemAttribute("values", typeof(returnValues), Form=System.Xml.Schema.XmlSchemaForm.Unqualified)]
    
            [System.Xml.Serialization.XmlElementAttribute("values", typeof(returnValues), Form = System.Xml.Schema.XmlSchemaForm.Unqualified, Order = 1)]
    
            public object[] values
            {
                get
                {
                    return this.valuesField;
                }
                set
                {
                    this.valuesField = value;
                    this.RaisePropertyChanged("values");
                }
            }
        }
    
    
    
    
    
    
        /// <remarks/>
        [System.CodeDom.Compiler.GeneratedCodeAttribute("xsd", "4.6.1055.0")]
        [System.SerializableAttribute()]
        [System.Diagnostics.DebuggerStepThroughAttribute()]
        [System.ComponentModel.DesignerCategoryAttribute("code")]
        [System.Xml.Serialization.XmlTypeAttribute(AnonymousType = true)]
        public partial class returnValues
        {
    
            //private returnValuesValue[] valueField;
    
            private List<string> valueField;
    
            /// <remarks/>
    
            [System.Xml.Serialization.XmlElementAttribute("value", Form = System.Xml.Schema.XmlSchemaForm.Unqualified)]
            public List<string>value
            {
                get
                {
                    return this.valueField;
                }
                set
                {
                    this.valueField = value;
                }
            }
        }


    K.T

    • Marked as answer by Keshav21 Friday, May 3, 2019 5:38 AM
    Friday, May 3, 2019 5:29 AM