cm_soap_courses.php 845 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. <?php
  2. /* For licensing terms, see /license.txt */
  3. /**
  4. * @package chamilo.webservices
  5. */
  6. require_once __DIR__.'/cm_webservice_courses.php';
  7. require_once __DIR__.'/cm_soap.php';
  8. /**
  9. * Configures the WSCourse SOAP service.
  10. */
  11. $s = WSCMSoapServer::singleton();
  12. $s->register(
  13. 'WSCMCourses.get_courses_code',
  14. [
  15. 'username' => 'xsd:string',
  16. 'password' => 'xsd:string',
  17. ],
  18. ['return' => 'xsd:string'],
  19. 'urn:WSCMService',
  20. '',
  21. '',
  22. '',
  23. 'Retorna o CODE dos cursos do username.'
  24. );
  25. $s->register(
  26. 'WSCMCourses.get_course_title',
  27. [
  28. 'username' => 'xsd:string',
  29. 'password' => 'xsd:string',
  30. 'course_code' => 'xsd:string',
  31. ],
  32. ['return' => 'xsd:string'],
  33. 'urn:WSCMService',
  34. '',
  35. '',
  36. '',
  37. 'Retorna o titulo/nome do curso de course_code informado'
  38. );