0 Replies Latest reply on May 15, 2006 8:50 AM by kmurray24

    Binding Text Input Field to Web Service doesn't seem to work

    kmurray24
      I have a web service where 1 of the parameters should come from a text input field. For some reason it's not being picked up from the field. I think it's a bug, but can be sure. It might have something to do with the way the web service parameter is defined using xsi:type="xsd:string". Maybe one of you Flex Guru's can point me to what might be wrong.???
      Thanks

      <?xml version="1.0" encoding="utf-8"?>
      <mx:Application xmlns:mx=" http://www.adobe.com/2006/mxml" layout="absolute">

      <mx:WebService id="ws" wsdl="C:\Documents and Settings\murrayk\My Documents\googleapi\GoogleSearch.wsdl" useProxy="false">
      <mx:operation name="doGoogleSearch">
      <mx:request format="xml">
      <ns1:doGoogleSearch xmlns:ns1="urn:GoogleSearch"
      xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
      <key xsi:type="xsd:string">cHbyBAdQFHJJ818t2wmxyTWozpACputa</key>
      <q xsi:type="xsd:string">{ti_searchparm.text}</q>
      <start xsi:type="xsd:int">0</start>
      <maxResults xsi:type="xsd:int">10</maxResults>
      <filter xsi:type="xsd:boolean">true</filter>
      <restrict xsi:type="xsd:string"/>
      <safeSearch xsi:type="xsd:boolean">false</safeSearch>
      <lr xsi:type="xsd:string" />
      <ie xsi:type="xsd:string">latin1</ie>
      <oe xsi:type="xsd:string">latin1</oe>
      </ns1:doGoogleSearch>
      </mx:request>
      </mx:operation>
      </mx:WebService>

      <mx:Button x="38" y="31" label="Search" click="ws.doGoogleSearch.send()"/>
      <mx:TextInput x="38" y="73" id="ti_searchparm"/>
      <mx:TextArea x="38" y="141" width="412" height="100" id="ta_searchresults" text="{ws.doGoogleSearch.result}"/>
      <mx:TextArea x="38" y="261" width="412" height="100" id="ta_searchresults2" text="{ti_searchparm.text}"/>
      </mx:Application>