7 Replies Latest reply on Jan 9, 2012 7:16 AM by wendy888

    when return large amount of XML, the error occurred.


      Usigng HTTPService call oracle database and return more than 2500 rows and load into XMLListCollection. It is error out. If return less than 2300 records, it works fine.

      Anyone can help on this?

      The problem happened before load into application. -- HTTP request error. How can I break ths XML file in several parts and load into XMLListCollection?

      Thank you in advance!

        • 1. Re: when return large amount of XML, the error occurred.
          Flex harUI Adobe Employee

          What is the error (including stack trace if any)?

          • 2. Re: when return large amount of XML, the error occurred.
            wendy888 Level 1

            Thank you for your reply.

            The error happended on  http post size limit. so that , it is a normal fault error as below.


            Error on : HTTP request error [RPC Fault faultString="HTTP request error" faultCode="Server.Error.Request" faultDetail="Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error #2032: Stream Error. URL: https://kimchi.adm.yu.edu/pls/yuprod/wsswapp.getAllInstructors"]. URL: https://kimchi.adm.yu.edu/pls/yuprod/wsswapp.getAllInstructors"]

            • 3. Re: when return large amount of XML, the error occurred.
              wendy888 Level 1

              Actually, how I can Compress an HTTP Response to shrink the XML file size.

              1 person found this helpful
              • 4. Re: when return large amount of XML, the error occurred.
                Zolotoj Level 3

                What kind of web server are you using?

                • 5. Re: when return large amount of XML, the error occurred.
                  wendy888 Level 1

                  Thank you for all your attention. I found a way to do it. Break up to small pieces and works fine.

                  • 6. Re: when return large amount of XML, the error occurred.
                    Murtaza_Ghodawala Level 1



                    I am building a mobile employee directory and for that I am using Flash Builder 4.6/AIR 3.1.0. I am using RESTful web service to get XML results and to display on my mobile application. I am getting the same below error when accessing the webservice from mobile app (Android - Galaxy Tab 7 inch).


                    Error: [IOErrorEvent type="ioError" bubbles=false cancelable=false eventPhase=2 text="Error # 2032"] URL: http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-co">http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-co ntext-root/jersey/restlabhttp://adfdevp.alshaya.com:7013/RESTEmployeeDetails-http://adfdevp.als haya.com:7013/RESTEmployeeDetails-EmployeeDetails-co ntext-root/jersey/restlabEmployeeDetails-context-root/jersey/restlab


                    The same code is working in Flash Builder 4.6. I have checked Network Monitor to "Disabled" before deploying to mobile. What am i doing wrong here? I am pasting my code below-



                    <?xml version="1.0" encoding="utf-8"?>

                    <s:View xmlns:fx="http://ns.adobe.com/mxml/2009"

                       xmlns:s="library://ns.adobe.com/flex/spark" title="HomeView" xmlns:dao="dao.*"





                        import mx.collections.ArrayCollection;

                        import mx.collections.IList;

                        import mx.collections.XMLListCollection;

                        import mx.events.FlexEvent;

                        import mx.rpc.events.FaultEvent;

                        import mx.rpc.events.ResultEvent;

                        import mx.rpc.xml.SimpleXMLDecoder;

                        import mx.utils.ArrayUtil;


                        import valueObjects.EmployeeDetail;


                        private var myXml:XML;



                        public var resultCollection:IList;

                        public function handleXml(event:ResultEvent):void


                         var xmlListCollection:XMLListCollection = new XMLListCollection(event.result.children());

                         var xmlListCollectionValues:XMLListCollection = new XMLListCollection(event.result.emp.children());

                         var resultArray:Array = xmlListCollection.toArray();

                         var resultArrayValues:Array = xmlListCollectionValues.toArray();



                         var objEmployeeDetails:EmployeeDetail;

                         var resultCollection:ArrayCollection = new ArrayCollection();


                         var j:int = 0;

                         for(var i:int=0;i<resultArray.length;i++){


                          objEmployeeDetails = new EmployeeDetail();

                          objEmployeeDetails.brand = resultArrayValues[j];

                          objEmployeeDetails.division = resultArrayValues[j+1];

                          objEmployeeDetails.email = resultArrayValues[j+2];

                          objEmployeeDetails.employee_name = resultArrayValues[j+3];

                          objEmployeeDetails.employee_number = resultArrayValues[j+4];

                          objEmployeeDetails.grade = resultArrayValues[j+5];

                          objEmployeeDetails.mobile = resultArrayValues[j+6];

                          objEmployeeDetails.position = resultArrayValues[j+7];


                          j = j + 8;




                         list.dataProvider = resultCollection;

                         //return resultCollection;



                        public function handleFault(event:FaultEvent):void


                         //Alert.show(event.fault.faultDetail, "Error");             



                        protected function sesrchEmployee():void









                       <dao:EmployeeDAO id="srv"/>


                       <mx:HTTPService id="xmlRpc"

                           url="http://adfdevp.alshaya.com:7013/RESTEmployeeDetails-EmployeeDetails-co ntext-root/jersey/restlab"



                           resultFormat="e4x" showBusyCursor="true">

                        <mx:request xmlns="">












                       <s:VGroup width="100%">

                       <s:HGroup width="100%">

                        <s:Label top="40" paddingTop="10" paddingRight="13" height="29" text="Employee Name:"/>

                        <s:TextInput id="key" width="559"/>


                       <s:HGroup width="100%">

                        <s:Label height="30" paddingTop="10" text="Employee Number:"/>

                        <s:TextInput id="key1" width="100%"/>







                       <s:Button icon="@Embed('assets/search.png')" click="sesrchEmployee()"/> 



                    <s:List id="list" top="0" bottom="0" left="0" right="0" 

                        change="navigator.pushView(EmployeeDetails, list.selectedItem)">



                         <s:IconItemRenderer label="{data.employee_name}"









                    Please help me to resolve this issue as soon as possible. Appreciate your quick response in this regard.




                    Murtaza Ghodawala

                    Mobile: +965 97180549


                    • 7. Re: when return large amount of XML, the error occurred.
                      wendy888 Level 1

                      My problem may cause by HTTP POST LIMIT. I changed my program to bring only index first and then bring the rest data for each record from the index.  It shrinks to small amount of XML. Hope it will help.