Hi chandan,

>From the error it seems like your call to the wsdl is succeessfull but
the problem seems to be somewhere in the type casting the values
returned from the wsdl. it says it throws exceptin in the
resultHandler function of the AbstractInvoker. try to locate where you
are using FlexProductData type object.

Only then this problem can be nail down.

Regards,
Anubhav

On Sep 23, 9:10 pm, chan <[EMAIL PROTECTED]> wrote:
> Hi All,
>
> I am using jboss-4.2.2.GA as the application server. I have copied
> flex data service i.e. flex folder contianing its jar
> file ,configurationf files etc under web-inf folder of my
> project.Similary flex related entries are added in web.xml.
>
> I am trying to invoke webservice through following code
> <?xml version="1.0" encoding="utf-8"?>
> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
> backgroundColor="#FFFFFF">
>         <mx:WebService id="srv" wsdl="http://localhost:8080/tdemandweb/
> services/ProductThresholdService?wsdl" showBusyCursor="true"   />
>         <mx:DataGrid dataProvider="{srv.getData.lastResult}" width="100%"
> height="100%">
>                 <mx:columns>
>                         <mx:DataGridColumn dataField="name" 
> headerText="Name"/>
>                         <mx:DataGridColumn dataField="price" 
> headerText="Price"/>
>                 </mx:columns>
>         </mx:DataGrid>
>         <mx:Button label="Get Product Data" click="srv.getData()"/>
> </mx:Application>
>
> After clicking "Get Product Data" button , I am calling getData
> method of the webservice. As i have put logger statemetn in the
> getData method, I can see that getData method is properly called. But
> after returning from the webservice, it is showing me the following
> error on the UI,
>
> [RPC Fault faultString="Cannot find type for: FlexProductData"
> faultCode="DecodingError" faultDetail="null"]
>         at mx.rpc.soap::Operation/http://www.adobe.com/2006/flex/mx/
> internal::processResult()
>         at mx.rpc::AbstractInvoker/http://www.adobe.com/2006/flex/mx/
> internal::resultHandler()
>         at mx.rpc::Responder/result()
>         at mx.rpc::AsyncRequest/acknowledge()
>         at DirectHTTPMessageResponder/completeHandler()
>         at flash.events::EventDispatcher/dispatchEventFunction()
>         at flash.events::EventDispatcher/dispatchEvent()
>         at flash.net::URLLoader/onComplete()
>
> If same code i execute through flex builder 3 , it is properly invoke
> the webservice and displays the data. However, if i call that
> webservice through flex application which is deployed in jboss, it is
> showing above error.
>
> I really new to this technology. I do not understand whether there is
> problem of the version which is used in jboss or what ?
>
> Could anybody let me know what would be the problem? how to solve that
> problem?
>
> This is urgent requirement and hence early response will be really
> appriciated.
>
> Thanks,
> Chandan
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Flex 
India Community" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/flex_india?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to