Flex 1.5 syntax
In Flex 1.5, you added a URL pattern to the whitelist that matched the
HTTPService tag.
MXML tag:
<mx:HTTPService id="MyService" url="http://myServer.com/services/my.jsp"/>
flex-config.xml file:
<http-proxy>
<whitelist>
<unnamed>
<url>http://myServer.com/services/*</url>
</unnamed>
</whitelist>
</http-proxy>
Flex 2 syntax
In Flex 2, the MXML tag syntax is almost the same, but you must also set the value of the
property to
useProxy
in Flex 1.5; the channel defines the protocol. Flex Data Services uses either the defaultHTTP
or defaultHTTPS destination depending on whether the URL starts with HTTP or HTTPS,
respectively.
In the services-config.xml file or a file that it includes by reference, such as the proxy-
config.xml file, you add a
HTTPService. The URL pattern must match the URL used in the MXML tag.
MXML tag:
<mx:HTTPService id="MyService" url="http://myServer.com/services/my.jsp"
useProxy="true"/>
proxy-config.xml file:
<destination id="defaultHTTP">
<properties>
<dynamic-url>http://myServer.com/services/*</dynamic-url>
...
</properties>
</destination>
. Flex 2 does not support the
true
to the
dynamic-url
property that was available
protocol
destination for an
defaultHTTP
Migrating HTTPService components
of the
url
141
Need help?
Do you have a question about the FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 and is the answer not in the manual?
Questions and answers