$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; } function countItems($input) { return count($input); } function isNil($input) { return is_null($input); } function returnVoid() { } function emptyBody() { } function requiredHeader($x) { $this->header = $x; } function echoHeader() { return $this->header; } function echoResolvedRef($ref) { return $ref->RelativeReference->base.$ref->RelativeReference->href; } } $server = new soapserver("http://http://example.org/ts-tests","http://example.org/ts-tests/C"); $server->bind(dirname(__FILE__)."/soap12-test.wsdl"); $server->setClass("Soap12test"); $server->handle(); echo "ok\n"; ?>