Hello and thanks in advance for any help you can provide.
My AIR application queries a webservice to see what components to build. A sample of the XML returned is:
<item>
<type>EventList</type>
<url><![CDATA[http://dashboard/cgi-bin/dataService.pl?type=ManagedEvents]]></url>
<index>4</index>
<title>Index 4 eventlist</title>
<description>Application 4</description>
</item>
I am trying to pass the URL stored in the field to a mxml component's HTTPService so that component can retrieve a set of data. The enclosing application parsed the above XML fine and then does:
component.getData(url);
Where in the component getData is:
public function getData(url:String):void {
ws = url;
dataService.send();
}
and
<mx:HTTPService
id="dataService"
url="{ws}"
resultFormat="e4x"
result="resultsHandler(event);"
fault="faultHandler(event);"
useProxy="false"
/>
Once the send() is called, I get the following error:
[FaultEvent fault=[RPC Fault faultString="A URL must be specified with useProxy set to false." faultCode="Client.URLRequired" faultDetail="null"] messageId=null type="fault" bubbles=false cancelable=true eventPhase=2]
Any clues as to what I'm doing wrong? (Thanks again for the help)
TB