quasimodo_es 发表于 2013-2-7 19:02:51

WebService 入门例子

<?xml version="1.0" encoding="utf-8"?><mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" fontSize="12"><mx:Script>    <!+"\n";      }      }      private function faultHandler(event:FaultEvent):void{      Alert.show(event.fault.toString(),'WebService Error');      }    ]]></mx:Script><mx:WebService id="webService" wsdl="http://www.webxml.com.cn/WebServices/WeatherWebService.asmx?wsdl"showBusyCursor="true" result="onLoad(event)" fault="faultHandler(event)"/><mx:TextInput id="cityname" text="北京" x="90" y="36"/><mx:Button label="Call WebService" click="webService.getWeatherbyCityName(cityname.text)" x="90" y="90"/><mx:TextArea id="myWeatherReport" height="385" width="80%" editable="false"y="129" x="10"/></mx:Application>
页: [1]
查看完整版本: WebService 入门例子