IRS-A2A BulkRequestTransmitter message not formmatted properly and/or cannot be interpreted

后端 未结 6 1548
一个人的身影
一个人的身影 2020-12-01 17:47

I am receiving the following error when attempting to submit through the BulkRequestTransmitter Web Service. The Composition Guide is less than helpful as far as this messa

6条回答
  •  时光取名叫无心
    2020-12-01 18:16

    This was an edit made to the above post, which added more information to jstill's post. Unfortunately, peer reviewers rejected it.

    In addition to the changes jstill made to the Status' Reference.cs file, I also had to include the BulkExchangeFileType and IncludeFileType updates he made to the Submission's Reference.cs file in order to get the Deserializer method to function partially.

    The Deserializer method will return the TransmissionStatusCd and the ReceiptId elements as expected, however, it will not populate the ErrorDataFile element properly.

    Since, at this time, I am unable to get the ErrorDataFile object populated properly, I am not utilizing the ACABulkRequestTransmitterStatusDetailResponseType object to capture the response returned from the Status Web Service. Instead, I have chosen to read the ResponseStream into a string object and parse the (up to) two MIME parts of the response, and process those as necessary.


    Additional changes to the Status' Reference.cs

    [System.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34283")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "urn:us:gov:treasury:irs:common")]
    public partial class BulkExchangeFileType : object, System.ComponentModel.INotifyPropertyChanged
    {
        private IncludeType includeField;
    
        /// 
        [System.Xml.Serialization.XmlElement(Order = 0, Namespace = "http://www.w3.org/2004/08/xop/include")]
        public IncludeType Include
        {
            get { return this.includeField; }
            set
            {
                this.includeField = value;
                this.RaisePropertyChanged("Include");
            }
        }
    
        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.CodeDom.Compiler.GeneratedCodeAttribute("System.Xml", "4.0.30319.34283")]
    [System.SerializableAttribute()]
    [System.Diagnostics.DebuggerStepThroughAttribute()]
    [System.ComponentModel.DesignerCategoryAttribute("code")]
    [System.Xml.Serialization.XmlTypeAttribute(Namespace = "http://www.w3.org/2004/08/xop/include")]
    public partial class IncludeType : object, System.ComponentModel.INotifyPropertyChanged
    {
        private System.Xml.XmlNode[] anyField;
        private string hrefField;
    
        /// 
        [System.Xml.Serialization.XmlTextAttribute()]
        [System.Xml.Serialization.XmlAnyElementAttribute(Order = 0)]
        public System.Xml.XmlNode[] Any
        {
            get { return this.anyField; }
            set
            {
                this.anyField = value;
                this.RaisePropertyChanged("Any");
            }
        }
    
        /// 
        [System.Xml.Serialization.XmlAttributeAttribute(DataType = "string")]
        public string href
        {
            get { return this.hrefField; }
            set
            {
                this.hrefField = value;
                this.RaisePropertyChanged("href");
            }
        } 
    
        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));
            }
        }
    }
    

提交回复
热议问题