<?xml version="1.0" encoding="utf-8"?>
<s:WindowedApplication xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
width="396" height="203">
<fx:Declarations>
<s:WebService id="srv" wsdl="http://127.0.0.1:10009/sysinfo.wsdl"
useProxy="false"
showBusyCursor="true">
<s:result>
trace(event.result);
editer.text = event.result as String;
</s:result>
</s:WebService>
</fx:Declarations>
<s:Button id="btn" x="70" y="54" label="按钮" click = " srv.fetch_cpu() "/>
<s:TextInput id="editer" x="161" y="54"/>
</s:WindowedApplication>
Flash Builder 4.5 访问 webservice (gsoap)代码
最新推荐文章于 2024-06-05 14:58:09 发布
本文介绍如何通过创建一个简单的MXML应用,利用WebService调用获取本地CPU信息,并将其显示在文本输入框中。
1213

被折叠的 条评论
为什么被折叠?



