Fedex tracking code.

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
5 years ago
You created Reference.cs for Fedex Tracking using Microsoft wdsl generator.
This generator has a bug.
It works bad with arrays
Read about it
https://github.com/dotnet/wcf/issues/2219


Your code

        [System.Xml.Serialization.XmlArrayAttribute(Order=5)]
        [System.Xml.Serialization.XmlArrayItemAttribute("NotificationEventsAvailable", typeof(EMailNotificationEventType), IsNullable=false)]
        public EMailNotificationEventType[][] RecipientDetails
        {
            get
            {
                return this.recipientDetailsField;
            }
            set
            {
                this.recipientDetailsField = value;
            }
        }

Correct code

        [System.Xml.Serialization.XmlArrayAttribute(Order=5)]
        [System.Xml.Serialization.XmlArrayItemAttribute("NotificationEventsAvailable", typeof(EMailNotificationEventType[]), IsNullable=false)]
        public EMailNotificationEventType[][] RecipientDetails
        {
            get
            {
                return this.recipientDetailsField;
            }
            set
            {
                this.recipientDetailsField = value;
            }
        }
5 years ago
Thanks for pointing out this. Here is a work item.
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.