Migrating Httpservice Components - Adobe FLEX 2-MIGRATING APPLICATIONS TO FLEX 2 Manual

Migrating applications to flex 2
Table of Contents

Advertisement

Migrating HTTPService components

This section describes how to migrate your HTTPService from Flex 1.5 to Flex 2.0 syntax.
For HTTPService tags, you specify the URL of the service in the
The following examples shows and HTTPService tag that contacts a service directly:
...
<mx:HTTPService
id="yahoo_web_search"
url="http://api.search.yahoo.com/WebSearchService/V1/webSearch"
/>
...
You now configure HTTP services in the
file or a file that it includes by reference. Adobe generally defines the Proxy Service in the
proxy-config.xml file, which is included by reference in the services-config.xml file.
Previously, it was configured in the
file.
To bind service results in Flex 2, you use the
binding source, as the following example shows:
<mx:Text text="{yahoo_web_search.lastResult}"/>
In Flex 1.5, the
result
Unnamed HTTPService
This section describes how to migrate your unnamed HTTPService tags from Flex 1.5 to
Flex 2.
For unnamed HTTPService tags that set
required to make any changes. These tags already ignore all server-side configuration.
140
Data Services
<proxy-service>
<http-service-proxy>
property was the binding source.
useProxy="false"
url
section of the services-config.xml
section of the flex-config.xml
property of the service as the
lastResult
, the default value, you are not
property of the tag.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flex 2

Table of Contents