Search code examples
apache-flexflex4flash-builderflashbuilder4

How to consume a REST web service with Flashbuilder 4?


I am creating a Restful WCF web service which will need to be consumed by FlashBuilder 4. Is this possible? If so, how can I go about doing that?

Thanks


Solution

  • Easily.

    <s:HTTPService id="service" url="http://domain.com/the/rest/path/" result="onResult(event)" resultFormat="xml" />
    

    Then just need to do service.send().