web service MDL-12886 alpha SOAP server/client

This commit is contained in:
jerome 2009-01-15 07:27:22 +00:00
parent 72aa74ce7c
commit 6eb82b7963
3 changed files with 117 additions and 0 deletions

View 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();
?>