soap complex类型数组项值

时间:2017-05-10 10:27:26

标签: c# xml soap

我有一个wsdl。我引用并运行它。我可以在小提琴手中看到项目值。

响应:

        <ns1:Results>
            <ns1:Result>
                <ns1:Status>true</ns1:Status>
                <ns1:Message>Başarılı</ns1:Message>
                <ns1:VendorAccount/>
                <ns1:DeliveryNumberList>
                    <ns1:DeliveryNumber PackingSlipNo="X100327233" VendorAccount="0002230728" Vat="">008740774</ns1:DeliveryNumber>
                </ns1:DeliveryNumberList>
            </ns1:Result>
        </ns1:Results>

我的Response类有三个属性:PackingSlipNo,VendorAccount,Vat

enter image description here

但我无法达到 008740774 价值。我怎么处理呢?

DeliveryNumberType类:

public partial class DeliveryNumberType : object, System.ComponentModel.INotifyPropertyChanged {

        private string vendorAccountField;

        private string vatField;

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string VendorAccount {
            get {
                return this.vendorAccountField;
            }
            set {
                this.vendorAccountField = value;
                this.RaisePropertyChanged("VendorAccount");
            }
        }

        /// <remarks/>
        [System.Xml.Serialization.XmlAttributeAttribute()]
        public string Vat {
            get {
                return this.vatField;
            }
            set {
                this.vatField = value;
                this.RaisePropertyChanged("Vat");
            }
        }

        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));
            }
        }
    }

EDIT2:

我认为给我的wsdl是错的。 enter link description here 它包含简单和复杂类型。

0 个答案:

没有答案