Flex/WS

Exemple d'usage d'un WebService dans une application Flex

      <![CDATA[ import mx.controls.Alert; public var weather:Namespace = new Namespace("http://www.webserviceX.NET"); ]]>	  			  {CountryName.text}     <CityName>{CityName.text}</CityName> {CountryName.text}</CountryName> </s:request> </s:operation> </s:WebService> </fx:Declarations> <mx:VBox> <s:Label text="Country Name:"/> <s:TextInput id="CountryName" width="200" text="France"/> <s:Label text="City Name:"/> <s:TextInput id="CityName" width="200" text="Cannes"/> <s:Button width="60" label="Get Weather" click="WeatherService.GetWeather.send;"/> <s:Label text="Doc:"/> <s:TextArea text="{WeatherService.GetWeather.lastResult}"/> </mx:VBox> </s:Application>