【问题标题】:Consuming web service from Adobe FLEX使用 Adob​​e FLEX 的 Web 服务
【发布时间】:2014-10-03 07:50:24
【问题描述】:

我是 FLEX 新手,我想调用一个返回字符串对象的服务:

    <mx:WebService id = "myService" wsdl = "http://myhost.com/Service1.svc?wsdl">
        <mx:operation name = "opName" resultFormat = "object" />
    </mx:WebService>

将服务返回的字符串存储在变量中的语法是什么?

【问题讨论】:

    标签: wcf actionscript-3 apache-flex flex4 flex3


    【解决方案1】:

    简单,使用result 处理程序:

    <mx:WebService ... result="myResultHandler(event)">
    
    public function myResultHandler(e:ResultEvent):void {
        myVar = e.result;
    }
    

    另请参阅:reference1reference2

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2011-11-29
      • 2021-03-16
      • 1970-01-01
      • 2021-10-30
      • 2012-02-07
      • 1970-01-01
      • 1970-01-01
      • 2020-07-04
      相关资源
      最近更新 更多