Hi riesvantwisk ,
Thanks for your response,
Please see my mxml file below,
<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="
http://www.adobe.com/2006/mxml"initialize="Handler()">
<mx:Script>
<![CDATA[
import mx.controls.Alert;
import mx.rpc.soap.WebService;
import mx.binding.utils.BindingUtils;
import mx.collections.ArrayCollection;
[Bindable]
private var _stateService:WebService;
private function Handler():void{
_stateService = new WebService();
_stateService.wsdl="
http://localhost:8080/tdemandweb/services/ProductThresholdService?wsdl" _stateService.loadWSDL();
_stateService.getData.send();
}
]]>
</mx:Script>
<mx:DataGrid id="Urdg"
dataProvider="{_stateService.getData.lastResult.results}"
width="100%" height="100%">
<mx:columns>
<mx:DataGridColumn dataField="name"
headerText="Name"/>
<mx:DataGridColumn dataField="price"
headerText="Price"/>
<mx:DataGridColumn dataField="productId"
headerText="Product Id"/>
<mx:DataGridColumn dataField="description"
headerText="Description"/>
<mx:DataGridColumn dataField="category"
headerText="Category"/>
</mx:columns>
</mx:DataGrid>
</mx:Application>
After calling getData method, webservice is returning me an
object of the Resultlist class(user defined class) which contain a
field results of type Arraylist. This arraylist object contains the
object of FlexProductData.java
Please see Flexproductdata.java below
package com.tdemand.common.service.common.types;
import java.io.Serializable;
public class FlexProductData implements Serializable {
private int productId;
private String name;
private String description;
private String category;
private double price;
// and setter and getter method of above field
}
In this way, webservice returning me the an object (named
results) of ResultList Class which contains the Arraylist object
results. This arraylist object i.e. results contains
Flexproductdata objects.
Now could you please let me know in what way the similar
class i should create on the flex side? and where to put in
project.
I have deployed my project on jboss.
Please let me know resposne ASAP possible as this is
extermely urgent requirement in our project?
One this, if i run above mxml through flex builder which uses
sdk3.1.0 for compilation , it works fine. But if the similar file I
deploy on jboss it is throwing me the above exception. I have
included LCDS in my jboss. All other flex program are running fine
in the jboss. Only this issue is causing me the problem.
Let me know if you need more information on this.
Thanks,
Regards,
Chandan