A.6 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[5]

String

String

Undefined

null

XML Object

System.Xml.XmlDocument

Null

null

[5] 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[6]

RecordSet

string

String

System.Xml.XmlDocument

XML object

nothing

Null

[6] ColdFusion only.



    Part III: Advanced Flash Remoting