Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

HTTPService Struts Data Loading Issue

Level 1
Level 1

I am currently refactoring a Struts Java Application to use a
Flex front end. I am using the betwixt API to pass Java Beans into
an XML data stream. This part is working fine.I am calling the
struts action using the HTTPService object. The problem occurs when
I send only 1..8 beans in the XML document, the data does not load.
If I send 9..n beans in the XML document all of the data Loads. Has
anyone faced this problem when interfacing with Java.


<mx:HTTPService id="sitesService"
fault="faultHandler(event)" result="setDataSet(event)"
showBusyCursor="true" url="/taskscheduling/menu/"
resultFormat="e4x" >







<mx:DataGrid id="sitesTable" dataProvider="{_sitesData}"
rowCount="{_sitesData.length + 1}" top="46" right="10" bottom="10"
left="10" variableRowHeight="true">


<mx:DataGridColumn dataField="id" visible="false"/>

<mx:DataGridColumn headerText="Site Name"

<mx:DataGridColumn headerText="Site Reference"

<mx:DataGridColumn headerText="Post Code"



Data processing:

private function setDataSet(result:ResultEvent):void


if (sitesDataXMLList!=null &&

sitesData = sitesDataXMLList;

beanType = "VieUsersSites";

} else if (sitesDataTaXMLList!=null &&

sitesData = sitesDataTaXMLList;

beanType = "VieTaUsersSites";


_sitesData = sitesData;


0 Replies