cm_soap_courses.php 816 B

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. <?php
  2. require_once(dirname(__FILE__).'/cm_webservice_courses.php');
  3. require_once(dirname(__FILE__).'/cm_soap.php');
  4. /**
  5. * Configures the WSCourse SOAP service
  6. */
  7. $s = WSCMSoapServer::singleton();
  8. $s->register(
  9. 'WSCMCourses.get_courses_code',
  10. array(
  11. 'username' => 'xsd:string',
  12. 'password' => 'xsd:string'
  13. ),
  14. array('return' => 'xsd:string'),
  15. 'urn:WSCMService',
  16. '',
  17. '',
  18. '',
  19. 'Retorna o CODE dos cursos do username.'
  20. );
  21. $s->register(
  22. 'WSCMCourses.get_course_title',
  23. array(
  24. 'username' => 'xsd:string',
  25. 'password' => 'xsd:string',
  26. 'course_code' => 'xsd:string',
  27. ),
  28. array('return' => 'xsd:string'),
  29. 'urn:WSCMService',
  30. '',
  31. '',
  32. '',
  33. 'Retorna o titulo/nome do curso de course_code informado'
  34. );