2 Replies Latest reply on Mar 26, 2007 1:32 PM by CrazyCoder

    HTTPService inside a custom component

    CrazyCoder
      Hi,

      I have an HTTPService object inside a custom component's MXML file. The component has a "myURL" attribute and the HTTPService is supposed to retrieve the data from this URL. I have set HTTPService's url attribute to "{myURL}" but I'm getting the following error msg:

      [RPC Fault faultString="A URL must be specified with useProxy set to false." faultCode="Client.URLRequired" faultDetail="null"]
      at mx.rpc.http::HTTPService/send()
      at mx.rpc.http.mxml::HTTPService/send()
      at LiveMatch/___Canvas1_creationComplete()
      at flash.events::EventDispatcher/flash.events:EventDispatcher::dispatchEventFunction()
      at flash.events::EventDispatcher/dispatchEvent()
      at mx.core::UIComponent/dispatchEvent()
      at mx.core::UIComponent/set initialized()
      at mx.managers::LayoutManager/::doPhasedInstantiation()
      at Function/ http://adobe.com/AS3/2006/builtin::apply()
      at mx.core::UIComponent/::callLaterDispatcher2()
      at mx.core::UIComponent/::callLaterDispatcher()

      How do I set the HTTPService object to retrieve data using the URL passed to the custom component?