2004-01-05 16:44:01 +00:00
|
|
|
--TEST--
|
|
|
|
SOAP Server 11: bind
|
|
|
|
--SKIPIF--
|
|
|
|
<?php require_once('skipif.inc'); ?>
|
|
|
|
--GET--
|
|
|
|
wsdl
|
2008-01-09 16:45:48 +00:00
|
|
|
--INI--
|
|
|
|
soap.wsdl_cache_enabled=0
|
2004-01-05 16:44:01 +00:00
|
|
|
--FILE--
|
|
|
|
<?php
|
|
|
|
function Add($x,$y) {
|
|
|
|
return $x+$y;
|
|
|
|
}
|
|
|
|
|
2004-02-05 20:26:05 +00:00
|
|
|
$server = new soapserver(dirname(__FILE__)."/test.wsdl");
|
2004-01-05 16:44:01 +00:00
|
|
|
ob_start();
|
|
|
|
$server->handle();
|
|
|
|
$wsdl = ob_get_contents();
|
|
|
|
ob_end_clean();
|
2004-01-09 14:27:14 +00:00
|
|
|
if ($wsdl == file_get_contents(dirname(__FILE__)."/test.wsdl")) {
|
2004-01-05 16:44:01 +00:00
|
|
|
echo "ok\n";
|
|
|
|
} else {
|
|
|
|
echo "fail\n";
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
--EXPECT--
|
|
|
|
ok
|