0

我想知道在 flex 中使用 httpservice 的 url 和destination 有什么区别。

我遇到了一个看起来像这样的 httpservice 示例

        service.resultFormat="e4x"
        service.method="GET";
        service.destination="http://www.blash.com" // I used an actual page 
        service.addEventListener("result", httpResult);
        service.addEventListener("fault", httpFault);
        service.send(parameters);

当我尝试这个时,我得到一个错误错误,说服务“通道”为空。

我取出了目标参数并设置了 url 参数,它工作正常。

目的地和渠道到底是什么?

仅供参考我正在调用的页面是一个公共 API,它以 XML 格式返回结果。

4

1 回答 1

0

目的地是您必须在 service-config.xml 中配置的代理,它与远程处理更相关。

于 2010-07-07T14:55:44.503 回答