diff options
Diffstat (limited to 'ext/soap/tests/typemap001.phpt')
-rw-r--r-- | ext/soap/tests/typemap001.phpt | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/ext/soap/tests/typemap001.phpt b/ext/soap/tests/typemap001.phpt index c582406f41..04c72eb836 100644 --- a/ext/soap/tests/typemap001.phpt +++ b/ext/soap/tests/typemap001.phpt @@ -8,11 +8,11 @@ soap.wsdl_cache_enabled=0 --FILE-- <?php $GLOBALS['HTTP_RAW_POST_DATA']=" -<env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" - xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" - xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" - xmlns:enc=\"http://schemas.xmlsoap.org/soap/encoding/\" - xmlns:ns1=\"http://schemas.nothing.com\" +<env:Envelope xmlns:env=\"http://schemas.xmlsoap.org/soap/envelope/\" + xmlns:xsi=\"http://www.w3.org/2001/XMLSchema-instance\" + xmlns:xsd=\"http://www.w3.org/2001/XMLSchema\" + xmlns:enc=\"http://schemas.xmlsoap.org/soap/encoding/\" + xmlns:ns1=\"http://schemas.nothing.com\" > <env:Body> <ns1:dotest> @@ -26,31 +26,31 @@ $GLOBALS['HTTP_RAW_POST_DATA']=" </env:Envelope>"; function book_from_xml($xml) { - $sxe = simplexml_load_string($xml); - $obj = new book; - $obj->a = (string)$sxe->a; - $obj->b = (string)$sxe->b; - return $obj; + $sxe = simplexml_load_string($xml); + $obj = new book; + $obj->a = (string)$sxe->a; + $obj->b = (string)$sxe->b; + return $obj; } class test{ - function dotest($book){ - $classname=get_class($book); - return "Object: ".$classname. "(".$book->a.",".$book->b.")"; - } + function dotest($book){ + $classname=get_class($book); + return "Object: ".$classname. "(".$book->a.",".$book->b.")"; + } } class book{ - public $a="a"; - public $b="c"; + public $a="a"; + public $b="c"; } $options=Array( - 'actor' =>'http://schemas.nothing.com', - 'typemap' => array(array("type_ns" => "http://schemas.nothing.com", - "type_name" => "book", - "from_xml" => "book_from_xml")) - ); + 'actor' =>'http://schemas.nothing.com', + 'typemap' => array(array("type_ns" => "http://schemas.nothing.com", + "type_name" => "book", + "from_xml" => "book_from_xml")) + ); $server = new SoapServer(__DIR__."/classmap.wsdl",$options); $server->setClass("test"); |