【问题标题】:Flex Builder Import Web service errors in autogen codeFlex Builder 在 autogen 代码中导入 Web 服务错误
【发布时间】:2009-10-08 12:06:35
【问题描述】:

我正在尝试使用 Flex 构建器功能(数据 > 导入 Web 服务)导入 Web 服务。该过程按预期进行,并根据 Web 服务描述生成类。生成的代码虽然有编译错误。

2个品种有20个错误。我在下面提供了一个错误示例。

这看起来像是自动生成器中的错误。自动生成代码正在尝试调度 ArrayCollection 类型的对象。据我所知,这是不可能的。

有没有人有建议或有类似的问题?

错误示例:

1067: Implicit coercion of a value of type net.responsys:ListTablesForCampaignResultEvent to an unrelated type flash.events:Event.  Responsys/src/net/responsys ResponsysWS57.as

1119: Access of possibly undefined property headers through a reference with static type net.responsys:ListFolderContentsResultEvent.   Responsys/src/net/responsys ResponsysWS57.as

【问题讨论】:

  • 另外,他们还有其他导入 Web 服务的方法可以在 Flash / Flex 中使用吗?

标签: apache-flex web-services flexbuilder


【解决方案1】:

如果它们都来自“事件”类,则可能是范围界定问题。尝试限定所有 Event 实例,例如查看生成的代码,在任何你看到 flash 事件的地方,在它之前添加 flash.events。 所以一个 flash 事件的声明可能看起来像: var 事件:flash.events.Event

而不是

var 事件:事件

【讨论】:

    猜你喜欢
    • 2016-05-31
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2013-10-22
    相关资源
    最近更新 更多