Quand je vais à http://localhost:3000/hello/sayhello, sorties Rails:Pourquoi cette application Flex "Hello World" ne récupère-t-elle pas le résultat de mon appel HTTPService distant?
hello world!
en HTML. Mais quand j'exécute cette application "Hello World" de Flex à distance, je vois un bouton et une zone de texte mais il ne capte pas la sortie de l'appel HTTPService vers mon URL Rails. Des idées pourquoi?
<?xml version="1.0" encoding="utf-8"?>
<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml"
layout="vertical"
backgroundGradientColors="[#ffffff, #c0c0c0]"
width="100%"
height="100%">
<mx:HTTPService
id="helloSvc"
url="http://localhost:3000/hello/sayhello"
method="POST" resultFormat="text"/>
<mx:Button label="call hello service"
click="helloSvc.send()"/>
<mx:TextInput text="{helloSvc.lastResult}"/>
</mx:Application>
Erreur stupide. J'appelais file: /// C: /public/bin/flex.html au lieu de http: // localhost: 3000/bin/flex.html. Merci de votre aide. – Bijou
Je suis content que vous l'ayez mis au point :) – bedwyr