<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
	<id>http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Web_services_FAQ</id>
	<title>Web services FAQ - История изменений</title>
	<link rel="self" type="application/atom+xml" href="http://wiki.mipt.ru/index.php?action=history&amp;feed=atom&amp;title=Web_services_FAQ"/>
	<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Web_services_FAQ&amp;action=history"/>
	<updated>2026-05-06T16:36:16Z</updated>
	<subtitle>История изменений этой страницы в вики</subtitle>
	<generator>MediaWiki 1.42.1</generator>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Web_services_FAQ&amp;diff=6353&amp;oldid=prev</id>
		<title>Олег Давидович: 1 версия импортирована</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Web_services_FAQ&amp;diff=6353&amp;oldid=prev"/>
		<updated>2024-10-18T06:47:27Z</updated>

		<summary type="html">&lt;p&gt;1 версия импортирована&lt;/p&gt;
&lt;table style=&quot;background-color: #fff; color: #202122;&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr class=&quot;diff-title&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;← Предыдущая версия&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: #fff; color: #202122; text-align: center;&quot;&gt;Версия от 06:47, 18 октября 2024&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-notice&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Олег Давидович</name></author>
	</entry>
	<entry>
		<id>http://wiki.mipt.ru/index.php?title=Web_services_FAQ&amp;diff=6352&amp;oldid=prev</id>
		<title>1&gt;Richert в 13:25, 17 мая 2019</title>
		<link rel="alternate" type="text/html" href="http://wiki.mipt.ru/index.php?title=Web_services_FAQ&amp;diff=6352&amp;oldid=prev"/>
		<updated>2019-05-17T13:25:57Z</updated>

		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Web services}}&lt;br /&gt;
This document lists some popular questions from the [http://moodle.org/mod/forum/view.php?id=6971 Web Services forum].&lt;br /&gt;
&lt;br /&gt;
== What is the difference between web services and MNet ==&lt;br /&gt;
&lt;br /&gt;
[[MNet]] is used to authenticate some users from a Moodle A site into a Moodle B site.&lt;br /&gt;
&lt;br /&gt;
Web services are functions that can be called by external applications (via SOAP, XML-RPC, REST or AMF).&lt;br /&gt;
&lt;br /&gt;
== I see the term &amp;quot;Web services&amp;quot; used in different ways, what does it mean? ==&lt;br /&gt;
&lt;br /&gt;
# The entire system in Moodle is referred to as the Moodle Web Service system.&lt;br /&gt;
# A particular action (like creating a user) is known as a Web service &amp;#039;&amp;#039;&amp;#039;function&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
# The admin can enable groups of these functions for outside use, and these are known as a &amp;quot;Web service&amp;quot;.&lt;br /&gt;
&lt;br /&gt;
== Where is the Web Service API documented? ==&lt;br /&gt;
&lt;br /&gt;
Since different Moodle sites can extend or restrict the API, and the API will evolve over time, the best way to see the exact API for a particular Moodle site is to look at the automatically generated documentation.&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Full API documentation&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Connect as admin&lt;br /&gt;
# Go to Administration Settings block &amp;gt; Plugins &amp;gt; Web services &amp;gt; API documentation&lt;br /&gt;
&lt;br /&gt;
&amp;#039;&amp;#039;&amp;#039;Specific documentation to a user&amp;#039;&amp;#039;&amp;#039;&lt;br /&gt;
# Connect as admin, enable web service, create a service and add some Moodle functions to it. Also see [[How_to_create_and_enable_a_web_service]].&lt;br /&gt;
# connect as non admin, and access the service documentation on your [[How_to_get_a_security_key|security keys page]].&lt;br /&gt;
&lt;br /&gt;
== Why are there not many functions in the API? ==&lt;br /&gt;
&lt;br /&gt;
We have been very careful when adding new functions because we don&amp;#039;t want to be changing the API functions once they are implemented.  The ones we have in Moodle 2.0 are the most commonly requested ones (for users, courses, groups and enrolments).  &lt;br /&gt;
&lt;br /&gt;
We will add more functions to core over time, based on contributions from the community and feature requests.  See the [[:dev:Web_services_Roadmap|web service roadmap]].&lt;br /&gt;
&lt;br /&gt;
You can also extend the API on your own Moodle site by creating your own API functions (see next question).&lt;br /&gt;
&lt;br /&gt;
== How can I create a new web service function? ==&lt;br /&gt;
&lt;br /&gt;
The easiest and recommended way to add a web service is to write a new Moodle local plugin and to implement the web service functions there.  The Moodle administrator will just need to add the plugin in Moodle (copy the files in /local/), the web service functions will be automatically added. Please read /local/readme.txt for more information about plugin development. Finally read  [[:dev:Creating_a_web_service_and_a_web_service_function|how to implement a web service and a web service function]].&lt;br /&gt;
&lt;br /&gt;
== How can I set up a web service? ==&lt;br /&gt;
&lt;br /&gt;
* See the document [[How_to_create_and_enable_a_web_service| How to create and enable a web service]]. &lt;br /&gt;
* &amp;#039;&amp;#039;Settings &amp;gt; Site administration &amp;gt; Plugins &amp;gt; Web services &amp;gt; Overview&amp;#039;&amp;#039; explains two use cases.&lt;br /&gt;
* Finally ask questions on the [http://moodle.org/mod/forum/view.php?id=6971 Web Services forum]&lt;br /&gt;
&lt;br /&gt;
== Does the Moodle SOAP server work with JAVA or .NET? ==&lt;br /&gt;
&lt;br /&gt;
Unfortunately the generated WSDL isn&amp;#039;t currently compatible with JAVA or .NET. See MDL-28988 and MDL-28989 for plans to create a JAVA-compatible SOAP WSDL.&lt;br /&gt;
&lt;br /&gt;
== How to get a user token from an external application? ==&lt;br /&gt;
you can generate and retrieve user tokens with the /login/token.php file =&amp;gt; [[:dev:Creating_a_web_service_client#How_to_get_a_user_token|How to get a user token]]&lt;br /&gt;
&lt;br /&gt;
== What is the &amp;#039;Access control exception&amp;#039; error ==&lt;br /&gt;
It means that one of this admin setting has failed:&lt;br /&gt;
* authorised user: ip restriction fails to authenticate the user (Administration &amp;gt; Plugins &amp;gt; Web services &amp;gt; Manage services &amp;gt; Authorized users &amp;gt; click on user full name)&lt;br /&gt;
* authorised user: valid date is expired (Administration &amp;gt; Plugins &amp;gt; Web services &amp;gt; Manage services &amp;gt; Authorized users &amp;gt; click on user full name)&lt;br /&gt;
* admin created the token: ip restriction fails to authenticate the user (Administration &amp;gt; Plugins &amp;gt; Web services &amp;gt; Manage tokens &amp;gt; check the status)&lt;br /&gt;
* admin created the token: valid date is expired (Administration &amp;gt; Plugins &amp;gt; Web services &amp;gt; Manage tokens &amp;gt; check the status)&lt;br /&gt;
* the user is not listed in the authorized list (Administration &amp;gt; Plugins &amp;gt; Web services &amp;gt; Manage services &amp;gt; Authorized users)&lt;br /&gt;
* the user hasn&amp;#039;t the required capability (Administration &amp;gt; Plugins &amp;gt; Web services &amp;gt; Manage services &amp;gt; Edit service)&lt;br /&gt;
* site in maintenance mode&lt;br /&gt;
* user is suspended&lt;br /&gt;
* user is not confirmed&lt;br /&gt;
* user is deleted&lt;br /&gt;
* the user authentication is set to nologin (edit the user profile)&lt;br /&gt;
* password expired (most likely happens with external authentication like LDAP)&lt;br /&gt;
* web service disabled (Administration &amp;gt; Advanced features)&lt;br /&gt;
* user doesn&amp;#039;t have the capability to use the used web service protocol (user should have the capability &amp;#039;webservice/use:xmlrpc&amp;#039;/&amp;#039;webservice/use:rest&amp;#039;/..., on SYSTEM context).&lt;br /&gt;
* the user token doesn&amp;#039;t exist&lt;br /&gt;
* the web service function is not included in the service&lt;br /&gt;
&lt;br /&gt;
Since Moodle 2.2, if the administrator turns Moodle debug mode &amp;gt;= NORMAL, then an explicit error message will be returned.&lt;br /&gt;
&lt;br /&gt;
==Any further questions?==&lt;br /&gt;
&lt;br /&gt;
Please post in the [http://moodle.org/mod/forum/view.php?id=6971 Web Services forum] on moodle.org&lt;br /&gt;
&lt;br /&gt;
[[Category:MNet]]&lt;br /&gt;
[[Category:FAQ]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[de:Webservices FAQ]]&lt;br /&gt;
[[ja:ウェブサービスFAQ]]&lt;br /&gt;
[[fr:FAQ sur les services Web]]&lt;/div&gt;</summary>
		<author><name>1&gt;Richert</name></author>
	</entry>
</feed>