function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
sayanasreekanth@gmail.comsayanasreekanth@gmail.com 

Unable to parse callout response. Apex type not found for element TransactionDate

Hi All

I got the WSDL from the Middleware and it parsed in to Salesforce it generated 4 classes. I wrote a test code in order to see if we are getting a valid response. Here is the error throwing. Can anyone let me know what exactly is the issue.

 

System.CalloutException: Web service callout failed: Unable to parse callout response. Apex type not found for element TransactionDate

 

Below is the class generated which has the transactiondate. 

 

 public class AccountsReceivableDetail {
        public Date TransactionDate;
        public DateTime PostDateTime;
        public Decimal Amount;
        public Decimal RemainingAmount;
        public ibusCzncorpComEsbBusinessobjects.Tax Tax;
        public ibusCzncorpComEsbBusinessobjects.GLAccount GLAccount;
        public ibusCzncorpComEsbBusinessobjects.Payment[] Payment;
        public ibusCzncorpComEsbBusinessobjects.Adjustment[] Adjustment;
        private String[] TransactionDate_type_info = new String[]{'TransactionDate','http://www.w3.org/2001/XMLSchema','date','0','1','false'};
        private String[] PostDateTime_type_info = new String[]{'PostDateTime','http://www.w3.org/2001/XMLSchema','dateTime','0','1','false'};
        private String[] Amount_type_info = new String[]{'Amount','http://www.w3.org/2001/XMLSchema','decimal','0','1','false'};
        private String[] RemainingAmount_type_info = new String[]{'RemainingAmount','http://www.w3.org/2001/XMLSchema','decimal','0','1','false'};
        private String[] Tax_type_info = new String[]{'Tax','http://ibus.czncorp.com/ESB/BusinessObjects','Tax','0','1','false'};
        private String[] GLAccount_type_info = new String[]{'GLAccount','http://ibus.czncorp.com/ESB/BusinessObjects','GLAccount','0','1','false'};
        private String[] Payment_type_info = new String[]{'Payment','http://ibus.czncorp.com/ESB/BusinessObjects','Payment','0','-1','false'};
        private String[] Adjustment_type_info = new String[]{'Adjustment','http://ibus.czncorp.com/ESB/BusinessObjects','Adjustment','0','-1','false'};
        private String[] apex_schema_type_info = new String[]{'http://ibus.czncorp.com/ESB/BusinessObjects','false','false'};
        private String[] field_order_type_info = new String[]{'TransactionDate','PostDateTime','Amount','RemainingAmount','Tax','GLAccount','Payment','Adjustment'};
    }

kiranmutturukiranmutturu
is this one of the classes out of 4 which is giving issue? is it possible to see the rest of the classes?
sayanasreekanth@gmail.comsayanasreekanth@gmail.com

Hi Kiran

 

can you give me your email address. The classes are too big and the community post will not able to big classes.

 

Thanks

Sreekanth.