I expect Flex is turning that into an ActionScript object...
Try using this as the output:
<mx:TextArea id="theDump" text="{ws.doGoogleSearch.result.estimateIsExact}" />
The estimateIsExact key should be in the top level of the result if my guess is correct.
If so, you should be able to figure out the structure for the rest of the GoogleSearchResult object by looking at the declaration in the wsdl
Spike
dduuggllaa wrote:
I implemented the Google WebService in Flex. Works fine. I now want to snoop in the returned results. I'm having a very difficult time extracting the XML payload.
My service: <mx:WebService id="ws wsdl="http://api.google.com/GoogleSearch.wsdl">
<mx:operation name="doGoogleSearch">
// ...
</mx:operation>
</mx:WebService>
The query: <mx:HBox> <mx:TextInput id="query" width="400"/> <mx:Button label="Search" click="ws.doGoogleSearch.send()"/> </mx:HBox>
According to a Macromedia technote this should work:
<mx:TextArea id="theDump" text="{ws.doGoogleSearch.result}" />
Nope. Instead it produces this: [object Object]
Huh?
So I tried: <mx:TextArea id="theDump" text="{ws.doGoogleSearch.result.resultElements}" />
Producing: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object]
Huh? Again.
What am I missing here?
-Douglass
Yahoo! Groups Links
--
-------------------------------------------- Stephen Milligan Code poet for hire http://www.spike.org.uk
Do you cfeclipse? http://cfeclipse.tigris.org

