File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Flex and the fly likes Anybody worked on Adobe Flex Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Flex
Bookmark "Anybody worked on Adobe Flex" Watch "Anybody worked on Adobe Flex" New topic

Anybody worked on Adobe Flex

Sonali Sabnis

Joined: Aug 25, 2008
Posts: 20
Hi Ranchers,

I have created a Web Service in Bea Weblogic. It accepts input as "BookName" and "ISBN" and returns the "Author" and "Price" in response.

I invoked the web service from Flex and I am getting the response which I can see on Weblogic's console. I am able to capture the complete response coming from the web service at Flex side but I want to retrieve the perticular response elements and show them in a text-area in Flex. I have highlighted the part of code to do it but somehow I am not able to get the expected result . Please find the below code snippet and reply.

Appriciate your help.

Code in Flex: (the .mxml file)

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="" layout="absolute">
import mx.controls.Text;
<mx:Button id="myButton" x="155" y="85" label="Get Details" width="98" click="serviceID.getBookQuote(text1.text, text2.text)"/>
<mx:TextInput x="110" y="37" width="80" id="text1"/>
<mx:TextInput x="213" y="37" width="82" id="text2"/>
<mx:TextArea x="84" y="140" height="183" id="textOutput" width="256"/>

<mx:WebService id="serviceID" wsdl="http://localhost:7001/BookQuoteService/com/example/BookQuoteService.jws?WSDL="
service="BookQuoteService" port="BookQuoteServicePort">
<mx: operation name="getBookQuote" resultFormat="e4x" result="handleResult(event)" fault="handleFault(event)">
<mx:request xmlns="">
</mx: operation>

import mx.controls.Alert

private function handleResult(event:ResultEvent):void{


private function handleFault(event:FaultEvent):void{"Fault:"+event.fault.faultString);


I agree. Here's the link:
subject: Anybody worked on Adobe Flex
jQuery in Action, 3rd edition