Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

flex2 can't receive googlesearch.wsdl..?

0 views
Skip to first unread message

constan...@gmail.com

unread,
Sep 18, 2006, 8:35:16 AM9/18/06
to
i used the software flex builder2 to create a page that can use
google's search webservice,and i think i had wrote the script
correctly,but can't get any result,the flex codes
are below:
<mx:WebService id="ws" wsdl="http://api.google.com/GoogleSearch.wsdl"
result="{ti.text='yes'}" fault="{ti.text='no'}">
<mx:operation name="doGoogleSearch">
<mx:request>
<key></key> //and i also had got my key written correctly!!
<start>0</start>
<maxResults>10</maxResults>
<filter>true</filter>
<safeSearch>true</safeSearch>
<q>{searchTerm}</q>
</mx:request>
</mx:operation>
</mx:WebService>
and i use a button to do "ws.doGoogleSearch.send()",and i'd bind the
result to a datagrid component,"ti" is a textinput component,and
everytime i click this send button,all i got is the fault feedback(a
"no" in the textinput) which means didn't receive any search result
from google soap research api...can't any flexcoder help me to solve
this problem?thanks a lot!!

blake...@gmail.com

unread,
Sep 25, 2006, 2:22:35 PM9/25/06
to
I am getting the same error. This is my first attempt at calling a
webservice. I thought I was doing it all wrong, but at least if someone
else has been down the same road I don't feel entirely lost. Has there
been any resolution?
Is this the wrong way to call a webservice in Flex2, or is it just the
google api?
There have to be other Flex2 coder/designers out there.

cul...@gmail.com

unread,
Sep 26, 2006, 11:36:33 PM9/26/06
to
Apparently you have to use the Flex/AJAX Bridge to connect to Google's
webservices because they don't have a cross domain xml doc.

Definitely an extra hassle but it'll work.

0 new messages