Flex的AIR:如何定义代理无火焰DS火焰、定义、Flex、AIR

2023-09-08 15:16:56 作者:爱梦人 !

我有一个AIR应用程序,我需要定义一个代理,因为这些服务都位于防火墙后面。

I have an AIR app that I need to define a proxy for because the services sit behind a firewall.

我们不使用BlazeDS的,所以我不能确定在代理-config.xml文件中的代理服务器设置。那么,我该怎么办呢?

We are not using BlazeDS so I can't define the proxy settings in the proxy-config.xml file. So, how do I do it?

任何提示的AP preciated。

Any tips are appreciated.

谢谢!

更新:

我有一个困难时期这个问题。

I'm having a hard time with this issue.

我猜,我不是谁拥有了在防火墙后面访问数据的时候,所以我不知道为什么我不能在网上找到的任何地方对此的任何文件工作的第一人。

I'm guessing that I'm not the first person who has had to work behind a firewall when accessing data so I'm not sure why I can't find any documentation on the web anywhere about this.

AIR说,它应该自动地了解和使用代理服务器配置从您的系统,即默认浏览器。在那里,我不设置手工代理,我用的是'自动配置',它指向一个.dat文件。难道这是问题所在?其空气不知道该怎么理解?

AIR says it is supposed to automatically know and use the proxy configuration from your system, i.e. default browser. In there, I don't set a manual proxy, I use the 'automatic configuration' and point it to a .dat file. Could this be where the problem is? Does AIR not know how to understand this?

有没有办法来设置HTTPService组件的代理,除非你使用火焰DS或LCDS?这是真的?我讨厌不得不添加到我的应用程序,这样我可以得到这个实现的。

There's no way to set a proxy on an HTTPService component unless you are using Blaze DS or LCDS? Is this true? I'd hate to have to add that to my application just so I can get this accomplished.

推荐答案

解决:问题是我得到了错误的URL访问。一旦我开始使用正确的URL,然后一切正常。它的关键是,空气应总是选择从系统默认浏览器的代理设置。

SOLVED: The problem was I was given the wrong URL to access. Once I started using the correct URL then everything worked. The crux of it is that AIR should always pick up proxy settings from default system browser.

感谢您Flextras的耐心。

Thank you Flextras for your patience.