<?php
/** sLog v0.8
* copyright (c) 2008 Kjell-Inge Gustafsson kigkonsult
* www.kigkonsult.se/slog/index.php
* hide@address.com
*
* Description:
* This file is a PHP SOAP sLog database server
*
* This program is free software; you can redistribute it and/or modify it
* under the terms of the GNU General Public License as published by the Free
* Software Foundation; either version 2 of the License, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*
* You should have received a copy of the GNU General Public License along with
* this program; if not, write to the Free Software Foundation, Inc., 59 Temple
* Place, Suite 330, Boston, MA 02111-1307 USA
*/
require_once 'SOAP/Server.php';
$skiptrace = & PEAR::getStaticProperty('PEAR_Error', 'skiptrace');
$skiptrace = TRUE;
require_once 'slogserver.class.php';
// error_log($HTTP_RAW_POST_DATA); // test, show input ###
// Initialize the slogserver class
// 1st param = dbparameters in array or external file
// 2nd param = debug to error_log (TRUE) or external file, FALSE=no debug (default)
$dbparams = array( 'dbserver' => 'localhost', 'database' => 'slog', 'dbuserid' => 'slogcaller', 'dbpasswd' => 'slogcaller');
//$slogserver = new slogserver( $dbparams , TRUE);
$slogserver = new slogserver( 'dbparams.txt');
// $slogserver = new slogserver( $dbparams , 'slog.log');
// Initialize the SOAP server
$server = new SOAP_Server();
// set the slogserver class as default responder, define namespace
$server->addObjectMap( $slogserver, 'urn:slogserver' );
// bind WSDL resource
$server->bindWSDL( 'http://localhost/sLog-0.8/pear_soap/slogserver.wsdl' );
// start server
$server->service( $HTTP_RAW_POST_DATA );
// exit
exit();
?>