Browse Source

Removed prefixes from webservices - sanitation

Yannick Warnier 12 years ago
parent
commit
0acb5170ae
2 changed files with 47 additions and 9 deletions
  1. 38 0
      documentation/changelog.html
  2. 9 9
      main/webservices/user_info.soap.php

+ 38 - 0
documentation/changelog.html

@@ -44,6 +44,44 @@
 <p><i>Note: most #wxyz references are issue numbers you can find in <a href="http://support.chamilo.org/projects/chamilo-18/issues" target="_blank">our public bug tracking system</a>. Some references marked BT#xyz are developments made externally for BeezNest customers and integrated into Chamilo. The details of these tasks cannot be seen for confidentiality reasons, but the code change is public and can be reviewed by anyone.</i></p>
 <p>&nbsp;</p>
 
+<h1>Chamilo 1.9.6 - Mystery, 18th of April, 2013</h1>
+<h3>Release notes - summary</h3>
+<p>Chamilo 1.9.6 is a minor stable version with a series of improvements on top of 1.9.4.</p>
+<h3>Release name</h3>
+<p><a href="http://en.wikipedia.org/wiki/Mystery">Mystery</a> is a name we give new versions before we know their name. </p>
+<h3>New Features</h3>
+<ul>
+  <li></li>
+</ul>
+<h3>Improvements</h3>
+<ul>
+  <li></li>
+</ul>
+<h3>Debugging</h3>
+<ul>
+  <li></li>
+</ul>
+<h3>Third-Party Libraries additions/updates</h3>
+<ul>
+  <li></li>
+</ul>
+<h3>Removals</h3>
+<ul>
+  <li></li>
+</ul>
+<h3>Stylesheets and theming</h3>
+<ul>
+  <li></li>
+</ul>
+<h3>Web services</h3>
+<ul>
+  <li>Removed Dok€os prefixes from services in user_info.soap.php</li>
+</ul>
+  
+
+
+------
+
 <h1>Chamilo 1.9.4 - Puebla, 18th of January, 2013</h1>
 <h3>Release notes - summary</h3>
 <p>Chamilo 1.9.4 is a minor stable version with a series of improvements on top of 1.9.2.</p>

+ 9 - 9
main/webservices/user_info.soap.php

@@ -17,7 +17,7 @@ $server = new soap_server();
 // Initialize WSDL support
 $server->configureWSDL('WSUserInfo', 'urn:WSUserInfo');
 
-/* Register DokeosWSCourseList function */
+/* Register WSCourseList function */
 // Register the data structures used by the service
 
 $server->wsdl->addComplexType(
@@ -50,12 +50,12 @@ $server->wsdl->addComplexType(
 );
 
 // Register the method to expose
-$server->register('DokeosWSCourseListOfUser',   // method name
+$server->register('WSCourseListOfUser',   // method name
     array('username' => 'xsd:string',
           'signature' => 'xsd:string'),         // input parameters
     array('return' => 'xsd:Array'),             // output parameters
     'urn:WSUserInfo',                           // namespace
-    'urn:WSUserInfo#DokeosWSUserInfo',          // soapaction
+    'urn:WSUserInfo#WSUserInfo',          // soapaction
     'rpc',                                      // style
     'encoded',                                  // use
     'This service returns a list of courses'    // documentation
@@ -65,11 +65,11 @@ $server->register('DokeosWSCourseListOfUser',   // method name
  * Get a list of courses (code, url, title, teacher, language) for a specific
  * user and return to caller
  * Function registered as service. Returns strings in UTF-8.
- * @param string User name in Dokeos
+ * @param string User name in Chamilo 
  * @param string Signature (composed of the sha1(username+apikey)
  * @return array Courses list (code=>[title=>'title',url='http://...',teacher=>'...',language=>''],code=>[...],...)
  */
-function DokeosWSCourseListOfUser($username, $signature) {
+function WSCourseListOfUser($username, $signature) {
     if (empty($username) or empty($signature)) { return -1; }
     global $_configuration;
 
@@ -96,7 +96,7 @@ function DokeosWSCourseListOfUser($username, $signature) {
     return $courses_list;
 }
 
-/* Register DokeosWSEventsList function */
+/* Register WSEventsList function */
 // Register the data structures used by the service
 $server->wsdl->addComplexType(
     'eventDetails',
@@ -128,14 +128,14 @@ $server->wsdl->addComplexType(
 );
 
 // Register the method to expose
-$server->register('DokeosWSEventsList',       // method name
+$server->register('WSEventsList',       // method name
     array('username' => 'xsd:string',
           'signature' => 'xsd:string',
           'datestart' => 'xsd:int',
           'dateend'   => 'xsd:int'),          // input parameters
     array('return' => 'xsd:Array'),           // output parameters
     'urn:WSUserInfo',                         // namespace
-    'urn:WSUserInfo#DokeosWSEventsList',      // soapaction
+    'urn:WSUserInfo#WSEventsList',      // soapaction
     'rpc',                                    // style
     'encoded',                                // use
     'This service returns a list of events of the courses the given user is subscribed to'      // documentation
@@ -150,7 +150,7 @@ $server->register('DokeosWSEventsList',       // method name
  * @param int    End date, in YYYYMMDD format
  * @return array Events list
  */
-function DokeosWSEventsList($username, $signature, $datestart = 0, $dateend = 0) {
+function WSEventsList($username, $signature, $datestart = 0, $dateend = 0) {
 
     if (empty($username) or empty($signature)) { return -1; }
     global $_configuration;