2005-04-03 15:51:22 +00:00
|
|
|
<?php
|
|
|
|
class SOAP_Interop_GroupB {
|
|
|
|
|
|
|
|
function echoStructAsSimpleTypes ($struct)
|
|
|
|
{
|
|
|
|
return array('outputString' => $struct->varString,
|
|
|
|
'outputInteger' => $struct->varInt,
|
|
|
|
'outputFloat' => $struct->varFloat);
|
|
|
|
}
|
|
|
|
|
|
|
|
function echoSimpleTypesAsStruct($string, $int, $float)
|
|
|
|
{
|
|
|
|
return (object)array("varString" => $string,
|
|
|
|
"varInt" => $int,
|
|
|
|
"varFloat" => $float);
|
|
|
|
}
|
|
|
|
|
|
|
|
function echoNestedStruct($struct)
|
|
|
|
{
|
|
|
|
return $struct;
|
|
|
|
}
|
|
|
|
|
|
|
|
function echo2DStringArray($ary)
|
|
|
|
{
|
|
|
|
return $ary;
|
|
|
|
}
|
|
|
|
|
|
|
|
function echoNestedArray($ary)
|
|
|
|
{
|
|
|
|
return $ary;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2008-01-09 16:45:48 +00:00
|
|
|
ini_set("soap.wsdl_cache_enabled",0);
|
2005-04-03 15:51:22 +00:00
|
|
|
$server = new SoapServer(dirname(__FILE__)."/round2_groupB.wsdl");
|
|
|
|
$server->setClass("SOAP_Interop_GroupB");
|
2007-05-07 18:45:03 +00:00
|
|
|
$server->handle($HTTP_RAW_POST_DATA);
|
2005-04-03 15:51:22 +00:00
|
|
|
?>
|