2002-07-14 22:14:38 +00:00
|
|
|
<?
|
|
|
|
//
|
|
|
|
// +----------------------------------------------------------------------+
|
|
|
|
// | PHP Version 4 |
|
|
|
|
// +----------------------------------------------------------------------+
|
2003-01-04 11:56:35 +00:00
|
|
|
// | Copyright (c) 1997-2003 The PHP Group |
|
2002-07-14 22:14:38 +00:00
|
|
|
// +----------------------------------------------------------------------+
|
|
|
|
// | This source file is subject to version 2.02 of the PHP license, |
|
|
|
|
// | that is bundled with this package in the file LICENSE, and is |
|
2006-01-01 13:27:13 +00:00
|
|
|
// | available through the world-wide-web at |
|
2002-07-14 22:14:38 +00:00
|
|
|
// | http://www.php.net/license/2_02.txt. |
|
|
|
|
// | If you did not receive a copy of the PHP license and are unable to |
|
|
|
|
// | obtain it through the world-wide-web, please send a note to |
|
|
|
|
// | license@php.net so we can mail you a copy immediately. |
|
|
|
|
// +----------------------------------------------------------------------+
|
|
|
|
// | Authors: Shane Caraveo <Shane@Caraveo.com> Port to PEAR and more |
|
|
|
|
// | Authors: Dietrich Ayala <dietrich@ganx4.com> Original Author |
|
|
|
|
// +----------------------------------------------------------------------+
|
|
|
|
//
|
|
|
|
// $Id$
|
|
|
|
//
|
|
|
|
|
|
|
|
class SOAP_Interop_Base {
|
|
|
|
|
|
|
|
function echoString($inputString)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $inputString;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoStringArray($inputStringArray)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $inputStringArray;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
function echoInteger($inputInteger)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $inputInteger;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoIntegerArray($inputIntegerArray)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $inputIntegerArray;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoFloat($inputFloat)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $inputFloat;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoFloatArray($inputFloatArray)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $inputFloatArray;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoStruct($inputStruct)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $inputStruct;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoStructArray($inputStructArray)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $inputStructArray;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoVoid()
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return NULL;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoBase64($b_encoded)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $b_encoded;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoDate($timeInstant)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $timeInstant;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoHexBinary($hb)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $hb;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoDecimal($dec)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $dec;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
function echoBoolean($boolean)
|
|
|
|
{
|
2004-01-05 16:44:01 +00:00
|
|
|
return $boolean;
|
2002-07-14 22:14:38 +00:00
|
|
|
}
|
2004-01-05 16:44:01 +00:00
|
|
|
|
2002-07-14 22:14:38 +00:00
|
|
|
function echoMimeAttachment($stuff)
|
|
|
|
{
|
|
|
|
return new SOAP_Attachment('return','application/octet-stream',NULL,$stuff);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2004-02-05 20:26:05 +00:00
|
|
|
$server = new SoapServer((isset($_SERVER['HTTPS'])?"https://":"http://").$_SERVER['HTTP_HOST'].dirname($_SERVER['PHP_SELF'])."/interop.wsdl.php");
|
2004-01-05 16:44:01 +00:00
|
|
|
$server->setClass("SOAP_Interop_Base");
|
|
|
|
$server->handle();
|
2002-07-14 22:14:38 +00:00
|
|
|
?>
|