cm_soap_courses.php 869 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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. array(
  15. 'username' => 'xsd:string',
  16. 'password' => 'xsd:string',
  17. ),
  18. array('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. array(
  28. 'username' => 'xsd:string',
  29. 'password' => 'xsd:string',
  30. 'course_code' => 'xsd:string',
  31. ),
  32. array('return' => 'xsd:string'),
  33. 'urn:WSCMService',
  34. '',
  35. '',
  36. '',
  37. 'Retorna o titulo/nome do curso de course_code informado'
  38. );