mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
web service MDL-12886 alpha SOAP server/client
This commit is contained in:
parent
72aa74ce7c
commit
6eb82b7963
3 changed files with 117 additions and 0 deletions
24
webservice/soap/server.php
Normal file
24
webservice/soap/server.php
Normal file
|
@ -0,0 +1,24 @@
|
|||
<?php
|
||||
/**
|
||||
* Main script - SOAP server
|
||||
*
|
||||
* @author Jerome Mouneyrac <jerome@moodle.com>
|
||||
* @version 1.0
|
||||
* @package webservices
|
||||
*/
|
||||
|
||||
/*
|
||||
* SOAP server
|
||||
*/
|
||||
require_once(dirname(__FILE__) . '/../../config.php');
|
||||
|
||||
//retrieve the api name
|
||||
$classpath = optional_param(classpath,null,PARAM_ALPHA);
|
||||
require_once(dirname(__FILE__) . '/../../'.$classpath.'/wsapi.php');
|
||||
|
||||
/// run the server
|
||||
$server = new SoapServer("moodle.wsdl");
|
||||
$server->setClass($classpath."_ws_api");
|
||||
$server->handle();
|
||||
|
||||
?>
|
Loading…
Add table
Add a link
Reference in a new issue