如何沟通 Flex 4 +直接.aspx?
我想知道是否可以将 flex 4 与文件 .aspx 进行通信。 我的问题是..我正在尝试将数据网格导出到excel,两个部分都是正确的,除了因为它们没有通信..当我用Visual Studio打开时,url是= localhost\casaws\ExportExcel,当我用flex打开时url 是 localhost:8080\casa\ExportExcel...这就是问题...如果有人知道如何解决这个问题,我会感谢...
I'd like to know if it's possible to communicate flex 4 with a file .aspx..
My problem is.. I'm trying to export a datagrid to excel and both parts are right, except because they are not communicating.. When I open with Visual Studio the url is = localhost\casaws\ExportExcel and when I open with flex the url is localhost:8080\casa\ExportExcel... that's the problem... if someone knows how to resolv this problem I'd thank...
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
从 Flex 中,您可以使用 远程对象,WebService,或 HTTPService 。
我不确定你所说的“直接”是什么意思,但其中之一应该适合你,具体取决于你的服务层的实现。
您目前如何尝试在两者之间进行沟通?在 Flex 中,您是否指定了远程 URL?您确定要包括端口吗?如果您使用的是 RemoteObject,则端口(和其他信息)通常在 service-config.xml 文件中定义。
From Flex, you can call remote service using RemoteObject, WebService, or HTTPService.
I'm not sure what you mean by "directly", but one of those should work for you, depending on the implementation of your service layer.
How are you currently trying to communicate between the two? In Flex, were are you specifying the remote URL? Were you sure to include the port? IF you're using RemoteObject, the port (and other information) are usually defined in a service-config.xml file.