| Flex 2 Developer's Guide > Data Access and Interconnectivity > Configuring Data Services > Serializing data > Providing legacy AMF serialization on a channel | |||
To support legacy AMF type serialization used in earlier versions of Flex, you can set legacy serialization properties in channel definitions in the services-config.xml file. To use legacy serialization for a destination, you assign a legacy channel to that destination.
The following example shows a channel definition that uses legacy serialization.
Revised on 09/07/006. Added ignore-property-errors and log-property-errors elements to the following channel definition.
<channel-definition id="my-legacy-amf" class="mx.messaging.channels.AMFChannel">
<endpoint uri="http://{server.name}:8100/dev/messagebroker/amflegacy"
class="flex.messaging.endpoints.AMFEndpoint"/>
<properties>
<serialization>
<!-- ignore-property-errors is true by default. It determines
if the endpoint should throw an error when an incoming
client object has unexpected properties that cannot be
set on the server object. -->
<ignore-property-errors>true</ignore-property-errors>
<!-- log-property-errors is false by default. When true,
unexpected property errors are logged. -->
<log-property-errors>false</log-property-errors>
<legacy-collection>true</legacy-collection>
<legacy-map>true</legacy-map>
<legacy-xml>true</legacy-xml>
<legacy-throwable>true</legacy-throwable>
</serialization>
</properties>
</channel-definition>
Flex 2
Send me an e-mail when comments are added to this page | Comment Report
Current page: http://livedocs.adobe.com/flex/2/docs/00001105.html