Flex Builder 导入 autogen 代码中的 Web 服务错误
我正在尝试使用 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
I'm trying to import a web service with the Flex builder feature (Data > Import Web Service). The process proceeds as expected and the classes are generated based on the web service description. The code is generated with compile errors in it though.
There are 20 errors of 2 varieties. I've included a sample of the errors below.
It looks like an error in the auto gen. The auto gen code is trying to dispatch an object of ArrayCollection type. As far I know that isn't possible.
Does anyone have advice or has anyone had similar problems?
Error examples:
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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
如果它们都来自“Event”类,则可能是范围界定问题。尝试限定所有事件实例,例如,查看生成的代码,无论您在何处看到 flash 事件,都在其前面添加 flash.events。
因此 Flash 事件的声明可能如下所示:
var event:flash.events.Event
而不是
var event:Event
If they are both from an "Event" class, it might be a scoping problem. Try qualifying all of the Event instances, e.g. look into the generated code and wherever you see a flash Event, add flash.events before it.
So a declaration of a flash event might look like:
var event:flash.events.Event
instead of
var event:Event