]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - themes/default/moacdropdown/xmlrpc.txt
seperated --> separated
[SourceForge/phpwiki.git] / themes / default / moacdropdown / xmlrpc.txt
1 How to encode the xmlrpc request in acdropdown?
2  
3 short form (local server):
4   "xmlrpc:wiki.titleSearch [S] 4"
5
6 long form (remote server):
7   "xmlrpc:http://localhost/wiki/?wiki.titleSearch [S] 4"
8
9 encode the methodname as optional query_arg and the args space separated
10 args can only be strings
11
12
13 The xmlrpc request looks like:
14
15 POST url
16
17 <?xml version='1.0' encoding="iso-8859-1" ?>
18 <methodCall>
19 <methodName>wiki.titleSearch</methodName>
20 <params>
21  <param>
22   <value>
23    <string>^Page</string>
24   </value>
25  </param>
26  <param>
27   <value>
28     <string>4</string>
29   </value>
30  </param>
31 </params>
32 </methodCall>
33
34
35 The xmlrpc response XML looks like this:
36
37 Content-Type: application/xml
38
39 <?xml version='1.0' encoding="iso-8859-1" ?>
40 <methodResponse>
41 <params>
42  <param>
43   <value>
44    <array>
45     <data>
46      <value>
47       <string>Page 1</string>
48      </value>
49      <value>
50       <string>Page 2</string>
51      </value>
52     </data>
53    </array>
54   </value>
55  </param>
56 </params>
57 </methodResponse>
58