DekiScript Remote Function Calls

Table of contents
  1. 1. DekiScript XML

DekiScript supports three protocols for remote function calls: DekiScriptXml, XmlRpc, and Get.  The following table lists the supported data types for each protocol.

Data Type \ Protocol DekiScript XML XML-RPC GET
Nil Yes Yes Yes
Bool Yes Yes Yes
Num Yes Yes Yes
Str Yes Yes Yes
List Yes Yes  -
Map Yes Yes  -
Uri Yes  -  -
XML Yes  -  -

DekiScript XML

Since the schema is recursive, it's usually easier to understand the structure of valid documents by looking at some examples.  The following table shows DekiScript expressions and their corresponding XML encoding side-by-side.

DekiScript
XML
null
<value type="nil" />
true
<value type="bool">true</value>
1.5
<value type="num">1.5</value>
"Hello \"World!!!\""
<value type="str">Hello World!!!</value>

NOTE: URI literals do not exist in DekiScript.  A URI can only be obtained through evaluation.  This limitation is due to security constraints.

http://localhost
<value type="uri">http://localhost</value>
{ }
<value type="map" />
{ first: "text", second: 1.23 }
<value type="map">
    <value key="first" type="str">text</value>
    <value key="second" type="num">1.23</value>
</value>
[ ]
<value type="list" />
[ "text", 1.23 ]
<value type="list">
    <value key="#" type="str">text</value>
    <value key="#" type="num">1.23</value>
</value>

NOTE: XML literals do not exist in DekiScript.  An XML document can only be obtained through evaluation.  This limitation is due to security constraints.

<doc>
    <elem attr="value">content</elem>
</doc>
<value type="xml">
    <doc>
        <elem attr="value">content</elem>
    </doc>
</value>

  

Tag page
You must login to post a comment.