qtypes help: MDL-5106 Create questiontype help file dynamically
[moodle.git] / lang / en_utf8 / webservice.php
CommitLineData
87171bd8 1<?php // $Id$
2$string['soapdocumentation'] = '<H2>SOAP Manual</H2>
3 <b>1.</b> Call the method <b>tmp_get_token</b> on \"<i>http://remotemoodle/webservice/soap/zend_soap_server.php?wsdl</i>\"<br>
4 Function parameter is an array: in PHP it would be array(\"username\" => \"wsuser\", \"password\" => \"wspassword\")<br>
5 Return value is a token (integer)<br>
6 <br>
7 <b>2.</b> Then call a moodle web service method on \"<i>http://remotemoodle/webservice/soap/zend_soap_server.php?token=the_received_token&classpath=the_moodle_path&wsdl</i>\"<br>
8 Every method has only one parameter which is an array.<br>
9 <br>
10 For example in PHP for this specific function:<br>
11 Moodle path: <b>user</b><br>
12 <b>tmp_delete_user</b>( string username, integer mnethostid, )<br>
13 You will call something like:<br>
14 your_client->tmp_delete_user(array(\"username\" => \"username_to_delete\",\"mnethostid\" => 1))<br><br>
15';
16$string['xmlrpcdocumentation'] = '<H2>XMLRPC Manual</H2>
17 <b>1.</b> Call the method <b>authentication.tmp_get_token</b> on \"<i>http://remotemoodle/webservice/xmlrpc/zend_xmlrpc_server.php</i>\"<br>
18 Function parameter is an array: in PHP it would be array(\"username\" => \"wsuser\", \"password\" => \"wspassword\")<br>
19 Return value is a token (integer)<br>
20 <br>
21 <b>2.</b> Then call a moodle web service method on \"<i>http://remotemoodle/webservice/xmlrpc/zend_xmlrpc_server.php?classpath=the_moodle_path&token=the_received_token</i>\"<br>
22 Every method has only one parameter which is an array.<br>
23 <br>
24 For example in PHP for this specific function:<br>
25 Moodle path: <b>user</b><br>
26 <b>tmp_delete_user</b>( string username, integer mnethostid, )<br>
27 You will call something like:<br>
28 your_client->call(\"user.tmp_delete_user\", array(array(\"username\" => \"username_to_delete\",\"mnethostid\" => 1)))<br>
29
30';
31$string['functionlist'] = 'list of web service functions';
32$string['moodlepath'] = 'Moodle path';
33?>