P. 1
Moodle Web Services API - Interfaces

Moodle Web Services API - Interfaces

|Views: 2,284|Likes:
Published by Francisco Rosa

More info:

Published by: Francisco Rosa on Sep 17, 2010
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

01/03/2013

pdf

text

original

J.

Filip

Moodle Web Services Interfaces

Moodle Web Services - Interfaces
1. Introduction
The Moodle web services API is made up of an object-oriented core with a central server class containing the main logic for the functions available via the web services (WS) interface. This class is meant to be extended to allow for many transport methods to use the same core functionality. The example transport interface supplied with this package is a SOAP transport layer. The general idea behind the WS interface is that a client will start a session with the server and can send commands to the server when that session is active. The session is initiated by sending login information to the Moodle WS and receiving a session ID and key which are required for all WS commands to execute successfully.

2. Usage
There is a very thin layer above the server and transport implementations and that is a small PHP script called /ws/service.php. This script is the endpoint for WS communications on the server side and takes a single paramter, type, which will specify a specific transport protocol and attempt to start a server sub-class based on that protocol. In the supplied example it the endpoint is /ws/service.php?type=soap. When using the WSDL interface the supplied /ws/wsdl.php script will return a WSDL file, moodlews.wsdl, that will be appropriate for the server that particular Moodle installation is running on. Because the Moodle uses the NuSOAP library you can have NuSOAP dynamically generate a WSDL file for you. This is done by pointing your WSDL URL at /ws/service.php?type=soap&wsdl. This will generate a WSDL file for you on-the-fly but is much slower than calling /ws/wsdl.php itself. However allowing NuSOAP to dynamically generate this file for you can help out a lot with debugging or adding new service methods.

3. API
Each method will have the following information: title, description, table of input parameters (complete with type) and an explanation of the return value. 2.1 login Initiates a WS session for a given Moodle user. All future commands send in will have restrictions checked against this Moodle user's system permissions. Input parameters:
username password

String String

The Moodle username to login with. The Moodle password to login with. 1 / 16

Each object in the input array must have an 'action' element with one of three possible values specified: – Add – Update – Delete If performing an Add you want to specify as many fields as possible with the minimum being: – – – – – – idnumber firstname lastname username password email If performing an Update you only need supply the idnumber field and any other attributes you wish to modify for the given user. An array of user objects. Input parameters: client sesskey users Integer String Array A WS client session record ID. Filip Moodle Web Services Interfaces Return: An object containing two elements: – client an Integer WS client session record ID. A WS client session key.3 edit_user Takes a group of user records and performs the specified editing operations on them (specified per-record). Input parameters: client sesskey Integer String A WS client session record ID. – sessionkey a String WS client session key. A WS client session key. 2. Return: An array of user objects representing each edited user record.2 logout Closes a given WS session thus invalidating the client ID and session key for any future WS commands. With a delete operation the only attribute required is the idnumber field of the record to be deleted. If any error occurred during 2 / 16 . Return: A boolean value with True indicating a successful logout and False indicating the logout failed.J. 2.

If any error occurred during processing of any user record. An array of user ID values. 2. Input parameters: client sesskey userids idfield Integer String Array String A WS client session record ID.J.e. the corresponding return object for that record will have an error attribute set with an error string indicating the failure. Input parameters: client sesskey courses Integer String Array A WS client session record ID. 'idfield' or 'id'). With a delete operation the only attribute required is the idnumber field of the record to be deleted. The database field that the user ID values correspond to (i. Filip Moodle Web Services Interfaces processing of any user object. Return: An array of user objects representing each requested user record. A WS client session key.5 edit_course Takes a group of course records and performs the specified editing operations on them (specified per-record). If any error occurred during processing of any user object. the corresponding return object for that record will have an error attribute set with an error string indicating the failure. 2. the corresponding return object for that record will have an error 3 / 16 .4 get_user Takes an array of user idnumber values to return the user records. Return: An array of course objects representing each edited course record. Each object in the input array must have an 'action' element with one of three possible values specified: – Add – Update – Delete If performing an Add you want to specify as many fields as possible with the minimum being: – – – idnumber shortname longname If performing an Update you only need supply the idnumber field and any other attributes you wish to modify for the given course. A WS client session key. An array of course objects.

If any error occurred during processing of any user record. Each course element contains an object made up of four attributes: – – – – error courseid stats grades If an error occurred or there was no grade data for the student in a given course.7 get_grades Retrieves grade data for a student in one or more courses. A WS client session key. the error attribute will contain the error string. Return: An array of user objects representing each requested user record. Filip Moodle Web Services Interfaces attribute set with an error string indicating the failure. A user idnumber value. 2. 2. the corresponding return object for that record will have an error attribute set with an error string indicating the failure. A comma-separated list of all the grade values The number of points this student currently has. The total number of points available to this student. A WS client session key. 4 / 16 . The stats attribute contains an array of the following information: gradeItems allgrades points totalpoints Integer String Integer Array The number of graded items. Input parameters: client sesskey users Integer String Array A WS client session record ID.6 get_course Takes an array of course idnumber values to return the course records.J. An array of user objects. An array of course idnumber values Return: An array with a single element for each course requested. Input parameters: client sesskey userid courseids Integer String String Array A WS client session record ID. The courseid element just contains the course idnumber value.

The student's overall course grade as a percentage value. The overall weighted grade value.xmlsoap.w3. error – A string containing listing any errors that occurred trying to enroll any of the users in the requested course. Filip percent weight weighted Moodle Web Services Interfaces Float Float Float The student's overall course grade as a percentage value.org/soap/encoding/" xmlns:si="http://soapinterop. The overall weight of the total grade data. WSDL file Example <?xml version="1. The overall weight of the total grade data. Input parameters: client sesskey courseid userids Integer String String Array A WS client session record ID. The grades attribute will contain an array of grade values for each graded activity in the course.org/xsd" xmlns:tns="http://localhost/moodle15/ws/wsdl" 5 / 16 . Each item in that array is an array of the following format: name String The number of graded items. A WS client session key. 2.J.8 enrol_students Attempt to enroll users as students within a specified course. The overall weighted grade value.xmlsoap. 4. An array of user idnumber values Return: An array with two elements: 1.w3.org/2001/XMLSchema-instance" xmlns:SOAP-ENC="http://schemas.org/2001/XMLSchema" xmlns:xsi="http://www.0" encoding="UTF-8"?> <definitions xmlns:SOAP-ENV="http://schemas. 2. The sorted position of this piece of grade data. students – The listing of all student database records for the request course.org/soap/envelope/" xmlns:xsd="http://www. A course idnumber value. maxgrade grade percent weight weighted sortOrder Integer String Float Float Float Integer A comma-separated list of all the grade values The number of points this student currently has.

xmlsoap.org/soap/encoding/" /> <xsd:import namespace="http://schemas.xmlsoap.xmlsoap.org/wsdl/soap/" xmlns:wsdl="http://schemas.org/wsdl/" xmlns="http://schemas.J.xmlsoap.org/wsdl/" /> <xsd:complexType name="userRecord"> <xsd:add> <xsd:element name="error" type="xsd:string" /> <xsd:element name="id" type="xsd:integer" /> <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element name="confirmed" type="xsd:integer" /> name="policyagreed" type="xsd:integer" /> name="deleted" type="xsd:integer" /> name="username" type="xsd:string" /> name="password" type="xsd:string" /> name="idnumber" type="xsd:string" /> name="firstname" type="xsd:string" /> name="lastname" type="xsd:string" /> name="email" type="xsd:string" /> name="icq" type="xsd:string" /> name="skype" type="xsd:string" /> name="yahoo" type="xsd:string" /> name="aim" type="xsd:string" /> name="msn" type="xsd:string" /> name="phone1" type="xsd:string" /> name="phone2" type="xsd:string" /> name="institution" type="xsd:string" /> name="department" type="xsd:string" /> <xsd:element name="address" type="xsd:string" /> <xsd:element name="city" type="xsd:string" /> <xsd:element name="country" type="xsd:string" /> <xsd:element name="lang" type="xsd:string" /> <xsd:element name="timezone" type="xsd:integer" /> <xsd:element name="lastip" type="xsd:string" /> <xsd:element name="description" type="xsd:string" /> </xsd:add> </xsd:complexType> <xsd:complexType name="userRecords"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:userRecord[]" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="userDatum"> <xsd:add> <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element name="action" type="xsd:string" /> name="confirmed" type="xsd:integer" /> name="policyagreed" type="xsd:integer" /> name="deleted" type="xsd:integer" /> name="username" type="xsd:string" /> 6 / 16 . Filip Moodle Web Services Interfaces xmlns:soap="http://schemas.xmlsoap.org/wsdl/" targetNamespace="http://localhost/moodle15/ws/wsdl"> <types> <xsd:schema targetNamespace="http://localhost/moodle15/ws/wsdl"> <xsd:import namespace="http://schemas.

J. Filip <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element </xsd:add> Moodle Web Services Interfaces name="password" type="xsd:string" /> name="idnumber" type="xsd:string" /> name="firstname" type="xsd:string" /> name="lastname" type="xsd:string" /> name="email" type="xsd:string" /> name="icq" type="xsd:string" /> name="skype" type="xsd:string" /> name="yahoo" type="xsd:string" /> name="aim" type="xsd:string" /> name="msn" type="xsd:string" /> name="phone1" type="xsd:string" /> name="phone2" type="xsd:string" /> name="institution" type="xsd:string" /> name="department" type="xsd:string" /> name="address" type="xsd:string" /> name="city" type="xsd:string" /> name="country" type="xsd:string" /> name="lang" type="xsd:string" /> name="timezone" type="xsd:integer" /> name="lastip" type="xsd:string" /> name="description" type="xsd:string" /> </xsd:complexType> <xsd:complexType name="userData"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:userDatum[]" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="courseRecord"> <xsd:add> <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element name="error" type="xsd:string" /> name="id" type="xsd:integer" /> name="category" type="xsd:integer" /> name="sortorder" type="xsd:integer" /> name="password" type="xsd:string" /> name="fullname" type="xsd:string" /> name="shortname" type="xsd:string" /> name="idnumber" type="xsd:string" /> name="summary" type="xsd:string" /> name="format" type="xsd:string" /> name="showgrades" type="xsd:integer" /> name="newsitems" type="xsd:integer" /> name="teacher" type="xsd:string" /> name="teachers" type="xsd:string" /> name="student" type="xsd:string" /> name="students" type="xsd:string" /> name="guest" type="xsd:integer" /> <xsd:element name="startdate" type="xsd:integer" /> <xsd:element name="enrolperiod" type="xsd:integer" /> 7 / 16 .

Filip <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element Moodle Web Services Interfaces name="numsections" type="xsd:integer" /> name="marker" type="xsd:integer" /> name="maxbytes" type="xsd:integer" /> name="visible" type="xsd:integer" /> name="hiddensections" type="xsd:integer" /> name="groupmode" type="xsd:integer" /> name="groupmodeforce" type="xsd:integer" /> <xsd:element name="lang" type="xsd:string" /> <xsd:element name="theme" type="xsd:string" /> <xsd:element name="cost" type="xsd:string" /> <xsd:element name="timecreated" type="xsd:integer" /> <xsd:element name="timemodified" type="xsd:integer" /> <xsd:element name="metacourse" type="xsd:integer" /> </xsd:add> </xsd:complexType> <xsd:complexType name="courseRecords"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:courseRecord[]" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="courseDatum"> <xsd:add> <xsd:element name="action" type="xsd:string" /> <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element <xsd:element name="id" type="xsd:integer" /> name="category" type="xsd:integer" /> name="sortorder" type="xsd:integer" /> name="password" type="xsd:string" /> name="fullname" type="xsd:string" /> name="shortname" type="xsd:string" /> name="idnumber" type="xsd:string" /> name="summary" type="xsd:string" /> name="format" type="xsd:string" /> name="showgrades" type="xsd:integer" /> name="newsitems" type="xsd:integer" /> name="teacher" type="xsd:string" /> name="teachers" type="xsd:string" /> name="student" type="xsd:string" /> name="students" type="xsd:string" /> name="guest" type="xsd:integer" /> name="startdate" type="xsd:integer" /> name="enrolperiod" type="xsd:integer" /> name="numsections" type="xsd:integer" /> name="marker" type="xsd:integer" /> name="maxbytes" type="xsd:integer" /> name="visible" type="xsd:integer" /> name="hiddensections" type="xsd:integer" /> name="groupmode" type="xsd:integer" /> name="groupmodeforce" type="xsd:integer" /> name="lang" type="xsd:string" /> name="theme" type="xsd:string" /> 8 / 16 .J.

Filip Moodle Web Services Interfaces <xsd:element name="cost" type="xsd:string" /> <xsd:element name="timecreated" type="xsd:integer" /> <xsd:element name="timemodified" type="xsd:integer" /> <xsd:element name="metacourse" type="xsd:integer" /> </xsd:add> </xsd:complexType> <xsd:complexType name="courseData"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:courseDatum[]" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="gradeRecord"> <xsd:add> <xsd:element name="name" type="xsd:string" /> <xsd:element name="maxgrade" type="xsd:integer" /> <xsd:element name="grade" type="xsd:integer" /> <xsd:element name="percent" type="xsd:string" /> <xsd:element name="weight" type="xsd:float" /> <xsd:element name="weighted" type="xsd:float" /> <xsd:element name="sortOrder" type="xsd:integer" /> </xsd:add> </xsd:complexType> <xsd:complexType name="gradeRecords"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:gradeRecord[]" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="gradeStatsRecord"> <xsd:add> <xsd:element name="gradeItems" type="xsd:integer" /> <xsd:element name="allgrades" type="xsd:string" /> <xsd:element name="points" type="xsd:integer" /> <xsd:element name="totalpoints" type="xsd:integer" /> <xsd:element name="percent" type="xsd:float" /> <xsd:element name="weight" type="xsd:string" /> <xsd:element name="weighted" type="xsd:float" /> </xsd:add> </xsd:complexType> <xsd:complexType name="studentGradeRecord"> <xsd:add> <xsd:element name="error" type="xsd:string" /> <xsd:element name="courseid" type="xsd:string" /> <xsd:element name="stats" type="tns:gradeStatsRecord" /> <xsd:element name="grades" type="tns:gradeRecords" /> </xsd:add> </xsd:complexType> <xsd:complexType name="studentGradeRecords"> <xsd:complexContent> 9 / 16 .J.

J. Filip Moodle Web Services Interfaces <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:studentGradeRecord[]" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="studentRecord"> <xsd:add> <xsd:element name="userid" type="xsd:integer" /> <xsd:element name="course" type="xsd:integer" /> <xsd:element name="timestart" type="xsd:integer" /> <xsd:element name="timeend" type="xsd:integer" /> <xsd:element name="timeaccess" type="xsd:integer" /> <xsd:element name="enrol" type="xsd:string" /> </xsd:add> </xsd:complexType> <xsd:complexType name="studentRecords"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="tns:studentRecord[]" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="loginReturn"> <xsd:add> <xsd:element name="client" type="xsd:integer" /> <xsd:element name="sessionkey" type="xsd:string" /> </xsd:add> </xsd:complexType> <xsd:complexType name="editUserInput"> <xsd:add> <xsd:element name="users" type="tns:userData" /> </xsd:add> </xsd:complexType> <xsd:complexType name="editUserOutput"> <xsd:add> <xsd:element name="users" type="tns:userRecords" /> </xsd:add> </xsd:complexType> <xsd:complexType name="getUserInput"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="getUserReturn"> <xsd:add> <xsd:element name="users" type="tns:userRecords" /> </xsd:add> 10 / 16 .

Filip Moodle Web Services Interfaces </xsd:complexType> <xsd:complexType name="editCourseInput"> <xsd:add> <xsd:element name="courses" type="tns:courseData" /> </xsd:add> </xsd:complexType> <xsd:complexType name="editCourseOutput"> <xsd:add> <xsd:element name="courses" type="tns:courseRecords" /> </xsd:add> </xsd:complexType> <xsd:complexType name="getCourseInput"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="getCourseReturn"> <xsd:add> <xsd:element name="courses" type="tns:courseRecords" /> </xsd:add> </xsd:complexType> <xsd:complexType name="getGradesInput"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="getGradesReturn"> <xsd:add> <xsd:element name="grades" type="tns:studentGradeRecords" /> </xsd:add> </xsd:complexType> <xsd:complexType name="enrolStudentsInput"> <xsd:complexContent> <xsd:restriction base="SOAP-ENC:Array"> <xsd:attribute ref="SOAP-ENC:arrayType" wsdl:arrayType="xsd:string" /> </xsd:restriction> </xsd:complexContent> </xsd:complexType> <xsd:complexType name="enrolStudentsReturn"> <xsd:add> <xsd:element name="error" type="xsd:string" /> <xsd:element name="students" type="tns:studentRecords" /> </xsd:add> </xsd:complexType> </xsd:schema> </types> <message name="mdl_soapserver.loginRequest"> 11 / 16 .J.

logoutRequest"> <part name="client" type="xsd:integer" /> <part name="sesskey" type="xsd:string" /> </message> <message name="mdl_soapserver.edit_courseResponse"> <part name="return" type="tns:editCourseOutput" /> </message> <message name="mdl_soapserver.edit_userResponse"> <part name="return" type="tns:editUserOutput" /> </message> <message name="mdl_soapserver.get_userRequest"> <part name="client" type="xsd:integer" /> <part name="sesskey" type="xsd:string" /> <part name="userids" type="tns:getUserInput" /> </message> <message name="mdl_soapserver.edit_userRequest"> <part name="client" type="xsd:integer" /> <part name="sesskey" type="xsd:string" /> <part name="users" type="tns:editUserInput" /> </message> <message name="mdl_soapserver. Filip Moodle Web Services Interfaces <part name="username" type="xsd:string" /> <part name="password" type="xsd:string" /> </message> <message name="mdl_soapserver.loginResponse"> <part name="return" type="tns:loginReturn" /> </message> <message name="mdl_soapserver.logoutResponse"> <part name="return" type="xsd:boolean" /> </message> <message name="mdl_soapserver.get_courseResponse"> <part name="return" type="tns:getCourseReturn" /> </message> <message name="mdl_soapserver.get_userResponse"> <part name="return" type="tns:getUserReturn" /> </message> <message name="mdl_soapserver.get_gradesResponse"> 12 / 16 .get_courseRequest"> <part name="client" type="xsd:integer" /> <part name="sesskey" type="xsd:string" /> <part name="courseids" type="tns:getCourseInput" /> </message> <message name="mdl_soapserver.J.edit_courseRequest"> <part name="client" type="xsd:integer" /> <part name="sesskey" type="xsd:string" /> <part name="courses" type="tns:editCourseInput" /> </message> <message name="mdl_soapserver.get_gradesRequest"> <part name="client" type="xsd:integer" /> <part name="sesskey" type="xsd:string" /> <part name="userid" type="xsd:string" /> <part name="courseids" type="tns:getGradesInput" /> </message> <message name="mdl_soapserver.

get_gradesResponse" /> </operation> <operation name="mdl_soapserver.enrol_studentsResponse"> <part name="return" type="tns:enrolStudentsReturn" /> </message> <portType name="MoodleWSPortType"> <operation name="mdl_soapserver.get_course"> <documentation>MoodleWS: Get Course Information</documentation> <input message="tns:mdl_soapserver.login"> <documentation>MoodleWS Client Login</documentation> <input message="tns:mdl_soapserver.edit_courseResponse" /> </operation> <operation name="mdl_soapserver.J.edit_userResponse" /> </operation> <operation name="mdl_soapserver.loginResponse" /> </operation> <operation name="mdl_soapserver.edit_course"> <documentation>MoodleWS: Edit Course Information</documentation> <input message="tns:mdl_soapserver.get_userResponse" /> </operation> <operation name="mdl_soapserver.enrol_students"> <documentation> MoodleWS: Enrol students in a course </documentation> <input message="tns:mdl_soapserver.get_user"> <documentation>MoodleWS: Get User Information</documentation> <input message="tns:mdl_soapserver.enrol_studentsRequest" /> 13 / 16 . Filip Moodle Web Services Interfaces <part name="return" type="tns:getGradesReturn" /> </message> <message name="mdl_soapserver.get_grades"> <documentation>MoodleWS: Get User Grades</documentation> <input message="tns:mdl_soapserver.get_courseRequest" /> <output message="tns:mdl_soapserver.logout"> <documentation>MoodleWS: Client Logout</documentation> <input message="tns:mdl_soapserver.enrol_studentsRequest"> <part name="client" type="xsd:integer" /> <part name="sesskey" type="xsd:string" /> <part name="courseid" type="xsd:string" /> <part name="userids" type="tns:enrolStudentsInput" /> </message> <message name="mdl_soapserver.get_userRequest" /> <output message="tns:mdl_soapserver.logoutResponse" /> </operation> <operation name="mdl_soapserver.edit_user"> <documentation>MoodleWS: Edit User Information</documentation> <input message="tns:mdl_soapserver.loginRequest" /> <output message="tns:mdl_soapserver.logoutRequest" /> <output message="tns:mdl_soapserver.edit_courseRequest" /> <output message="tns:mdl_soapserver.get_gradesRequest" /> <output message="tns:mdl_soapserver.get_courseResponse" /> </operation> <operation name="mdl_soapserver.edit_userRequest" /> <output message="tns:mdl_soapserver.

xmlsoap.org/soap/encoding/" /> </input> <output> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas. Filip Moodle Web Services Interfaces <output message="tns:mdl_soapserver.xmlsoap.xmlsoap.org/soap/http" /> <operation name="mdl_soapserver.org/soap/encoding/" /> </output> </operation> <operation name="mdl_soapserver.edit_user"> <soap:operation soapAction="http://localhost/moodle15/ws/wsdl#edit_user" style="rpc" /> <input> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.enrol_studentsResponse" /> </operation> </portType> <binding name="MoodleWSBinding" type="tns:MoodleWSPortType"> <soap:binding style="rpc" transport="http://schemas.org/soap/encoding/" /> </output> </operation> <operation name="mdl_soapserver.logout"> <soap:operation soapAction="http://localhost/moodle15/ws/wsdl#logout" style="rpc" /> <input> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </input> <output> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.org/soap/encoding/" /> </output> </operation> <operation name="mdl_soapserver.login"> <soap:operation soapAction="http://localhost/moodle15/ws/wsdl#login" style="rpc" /> <input> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.xmlsoap.J.get_user"> <soap:operation soapAction="http://localhost/moodle15/ws/wsdl#get_user" style="rpc" /> 14 / 16 .xmlsoap.org/soap/encoding/" /> </input> <output> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.xmlsoap.

org/soap/encoding/" /> </input> <output> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas. Filip Moodle Web Services Interfaces <input> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </output> </operation> <operation name="mdl_soapserver.get_course"> <soap:operation soapAction="http://localhost/moodle15/ws/wsdl#get_course" style="rpc" /> <input> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.xmlsoap.xmlsoap.edit_course"> <soap:operation soapAction="http://localhost/moodle15/ws/wsdl#edit_course" style="rpc" /> <input> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.get_grades"> <soap:operation soapAction="http://localhost/moodle15/ws/wsdl#get_grades" style="rpc" /> <input> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </output> </operation> <operation name="mdl_soapserver.org/soap/encoding/" /> </input> <output> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </output> 15 / 16 .xmlsoap.org/soap/encoding/" /> </input> <output> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.xmlsoap.xmlsoap.org/soap/encoding/" /> </input> <output> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.J.org/soap/encoding/" /> </output> </operation> <operation name="mdl_soapserver.

enrol_students"> <soap:operation soapAction="http://localhost/moodle15/ws/wsdl#enrol_students" style="rpc" /> <input> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" /> </input> <output> <soap:body use="encoded" namespace="http://localhost/moodle15/ws/wsdl" encodingStyle="http://schemas.org/soap/encoding/" /> </output> </operation> </binding> <service name="MoodleWS"> <port name="MoodleWSPort" binding="tns:MoodleWSBinding"> <soap:address location="http://localhost/moodle15/ws/service.php?type=soap" /> </port> </service> </definitions> 16 / 16 .J. Filip Moodle Web Services Interfaces </operation> <operation name="mdl_soapserver.xmlsoap.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->