SOAP Datatype Conversion

Web services are varied but have a core set of datatypes that are readily converted by the Flash gateway. Table A-11 shows the datatype conversions from Flash ActionScript to SOAP.

Table A-11. Flash-to-SOAP datatype conversion

Flash (ActionScript)

SOAP

ActionScript object

complex type

Array (indexed)

array

Array (associative)

complex type

Boolean

boolean

Date object

dateTime

Number

decimal, float, double, integer, int (depending on what the number is most readily converted to)

RecordSet

query object[6]

String

String

Undefined

null

XML Object

System.Xml.XmlDocument

Null

null

[6] ColdFusion only.

Table A-12 shows the datatype conversions from SOAP to Flash ActionScript.

Table A-12. SOAP-to-Flash datatype conversion

SOAP

Flash (ActionScript)

complex type

ActionScript object

complex type

ActionScript object of that type

array

Array (indexed)

complex type

Array (associative)

Boolean

Boolean

dateTime

Date object

decimal, float, double, integer, int

Number

complex type

Array of RecordSets

query object[7]

RecordSet

string

String

System.Xml.XmlDocument

XML object

nothing

Null

[7] ColdFusion only.

Get Flash Remoting: The Definitive Guide now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.