-
Notifications
You must be signed in to change notification settings - Fork 1
/
xml_rpc_demo.lasso
43 lines (40 loc) · 1.05 KB
/
xml_rpc_demo.lasso
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
[sys_listtypes !>> 'xml_rpc' ? include('/xml_rpc.lasso')]<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<title>XML_RPC - Demo File</title>
</head>
<body>
<p>
The following text area contains the result of using <code>XML_RPCCall</code>.
</p>
<textarea rows="20" cols="80">[
XML_RPCCall(
array('Hello World!'),
'test.echo',
('http://'+server_name+'/xml_rpc_response.lasso'))
]</textarea>
<hr>
<p>
Use <code>XML_RPC</code> to create an instance of an <code>xml_rpc</code> type then use the following methods on the instance variable.
</p>
[local('x' = XML_RPC(array('Hello World!')))]
<h3>#x->getparams</h3>
<p>
[#x->getparams]
</p>
<h3>#x->call</h3>
<p>
Returns an array. Once you have called <code>XML_RPC</code>, then you have <code>->getmethod</code> and <code>->response</code> methods available.
</p>
<p>
[#x->call(('http://'+server_name+'/xml_rpc_response.lasso'), 'test.echo')]
</p>
<h3>#x->getmethod</h3>
<p>
[#x->getmethod]
</p>
<h3>#x->response</h3>
<textarea rows="20" cols="80">[#x->response]</textarea>
</body>
</html>