cm_soap_announcements.php 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. <?php
  2. require_once(dirname(__FILE__).'/cm_webservice_announcements.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. 'WSCMAnnouncements.get_announcements_id',
  10. array(
  11. 'username' => 'xsd:string',
  12. 'password' => 'xsd:string',
  13. 'course_code' => 'xsd:string'
  14. ),
  15. array('return' => 'xsd:string'),
  16. 'urn:WSCMService',
  17. '',
  18. '',
  19. '',
  20. 'Retorna o ID dos anuncios visiveis a um usuario de uma disciplina.'
  21. );
  22. $s->register(
  23. 'WSCMAnnouncements.get_announcement_data',
  24. array(
  25. 'username' => 'xsd:string',
  26. 'password' => 'xsd:string',
  27. 'course_code' => 'xsd:string',
  28. 'announcement_id' => 'xsd:string',
  29. 'field' => 'xsd:string'
  30. ),
  31. array('return' => 'xsd:string'),
  32. 'urn:WSCMService',
  33. '',
  34. '',
  35. '',
  36. 'Retorna o conteudo do campo informado de um anuncio de chave ID. Campos retornaveis: sender, date, title e content'
  37. );