summaryrefslogtreecommitdiff
path: root/includes/js/dojox/rpc/tests/resources/test.smd
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-13 09:49:11 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-11-13 09:49:11 +0000
commite44a7e37b6c7b5961adaffc62b9042b8d442938e (patch)
tree95b67c356e93163467db2451f2b8cce84ed5d582 /includes/js/dojox/rpc/tests/resources/test.smd
parenta62b9742ee5e28bcec6872d88f50f25b820914f6 (diff)
downloadsemanticscuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.gz
semanticscuttle-e44a7e37b6c7b5961adaffc62b9042b8d442938e.tar.bz2
New feature: basic Ajax suggestion for tags and implementation of Dojo toolkit
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@151 b3834d28-1941-0410-a4f8-b48e95affb8f
Diffstat (limited to 'includes/js/dojox/rpc/tests/resources/test.smd')
-rw-r--r--includes/js/dojox/rpc/tests/resources/test.smd189
1 files changed, 189 insertions, 0 deletions
diff --git a/includes/js/dojox/rpc/tests/resources/test.smd b/includes/js/dojox/rpc/tests/resources/test.smd
new file mode 100644
index 0000000..6ad56be
--- /dev/null
+++ b/includes/js/dojox/rpc/tests/resources/test.smd
@@ -0,0 +1,189 @@
+{
+ transport: "POST",
+ envelope: "URL",
+ strictParameters: false,
+ parameters: {
+ appId: {},
+ outputType: {
+ default: "json"
+ },
+
+ ignoreErrors: {
+ optional: true
+ }
+ },
+
+ services: {
+ postEcho: {
+ target: "echo.php",
+ parameters: [
+ {name: "message", type: "string", optional: true}
+ ]
+ },
+
+ getEcho: {
+ transport: "GET",
+ target: "echo.php",
+
+ parameters: [
+ {name: "message", type: "string", optional: true}
+ ]
+ },
+ getEchoJson: {
+ transport: "GET",
+ target: "echoJson.php",
+ contentType:"application/json",
+ parameters: [
+ {name: "message", type: "string", optional: true}
+ ]
+ },
+ getPathEcho: {
+ transport: "GET",
+ envelope: "PATH",
+ target: "echo.php?message=",
+
+ parameters: [
+ {name: "message", type: "string", optional: true}
+ ]
+ },
+ restStore: {
+ transport: "REST",
+ contentType:"text/plain",
+ target: "fakestore.php",
+ parameters: [
+ {name: "location", type: "string", optional: true}
+ ]
+ },
+ jsonRestStore: {
+ transport: "REST",
+ target: "fakestore.php",
+ contentType:"application/json",
+ parameters: [
+ {name: "location", type: "string", optional: true}
+ ]
+ },
+
+
+
+ postJsonEcho: {
+ transport: "POST",
+ envelope: "JSON",
+ target: "rawEcho.php",
+
+ parameters: [
+ {name: "message", type: "string", optional: true}
+ ]
+ },
+
+ jsonpEcho: {
+ transport: "JSONP",
+ target: "jsonpEcho.php",
+ callbackParamName: "testCallbackParam",
+
+ parameters: [
+ {name: "message", type: "string", optional: true}
+ ]
+ },
+
+ postJsonRpc10Echo: {
+ transport: "POST",
+ envelope: "JSON-RPC-1.0",
+ target: "jsonRpc10.php",
+
+ parameters: [
+ {type: "string", optional: true}
+ ]
+ },
+
+ postJsonRpc10EchoNamed: {
+ transport: "POST",
+ envelope: "JSON-RPC-1.0",
+ target: "jsonRpc10.php",
+
+ parameters: [
+ {type: "string", optional: true}
+ ]
+ },
+
+ jsonpJsonRpc12Echo: {
+ transport: "JSONP",
+ envelope: "JSON-RPC-2.0",
+ target: "jsonpJsonRpcEcho.php",
+
+ parameters: [
+ {type: "string", optional: true}
+ ]
+ },
+
+ jsonpJsonRpc12EchoNamed: {
+ transport: "JSONP",
+ envelope: "JSON-RPC-2.0",
+ target: "jsonpJsonRpcEcho.php",
+
+ parameters: [
+ {name: "message", type: "string", optional: true}
+ ]
+ },
+
+ postJsonRpc10ForcedError: {
+ envelope: "JSON-RPC-1.0",
+ transport: "POST",
+ target: "jsonRpc10.php",
+
+ parameters: [
+ {type: "string", optional: true}
+ ]
+ },
+
+ postJsonRpc12Echo: {
+ transport: "POST",
+ envelope: "JSON-RPC-2.0",
+ target: "jsonRpc12.php",
+
+ parameters: [
+ {name: "message", type: "string", optional: true}
+ ]
+ },
+
+ getJsonRpc12Echo: {
+ transport: "GET",
+ envelope: "JSON-RPC-2.0",
+ target: "jsonRpcPostGetEcho.php",
+
+ parameters: [
+ {type: "string", optional: true}
+ ]
+ },
+
+ postJsonRpc12EchoNamed: {
+ transport: "POST",
+ envelope: "JSON-RPC-2.0",
+ target: "jsonRpcPostGetEcho.php",
+
+ parameters: [
+ {type: "string", optional: true}
+ ]
+ },
+
+ getJsonRpc12EchoNamed: {
+ transport: "GET",
+ envelope: "JSON-RPC-2.0",
+ target: "jsonRpcPostGetEcho.php",
+
+ parameters: [
+ {type: "string", optional: true}
+ ]
+ },
+
+
+ postJsonRpc12ForcedError: {
+ envelope: "JSON-RPC-2.0",
+ transport: "POST",
+ target: "jsonRpc12.php",
+
+ parameters: [
+ {type: "string", optional: true}
+ ]
+ }
+ }
+}