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.
|
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.
|
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. | |
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access