Redirected from DekiScript/Reference/DekiScript Remote Function Calls
Was this page helpful?

DekiScript Remote Function Calls

  • You do not have permissions to view this page - please try logging in.
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>
<doc>
    <elem attr="value">content</elem>
</doc>
<value type="xml">
    <doc>
        <elem attr="value">content</elem>
    </doc>
</value>

  

Was this page helpful?
Tag page
You must login to post a comment.

Copyright © 2011 MindTouch, Inc. Powered by