$schema
EOF;
$fname = tempnam ("./", "wsdl");
$f = fopen($fname,"w");
fwrite($f,$wsdl);
fclose($f);
ini_set("soap.wsdl_cache_enabled",0);
$x = new SoapClient($fname, array("trace"=>1,"exceptions"=>0,"features"=>$features));
$y = new SoapServer($fname, array("features"=>$features));
$y->addfunction("test");
unlink($fname);
$x->test($param);
$xml = xml_parser_create();
$req = $x->__getlastrequest();
if ($style == "rpc") {
$HTTP_RAW_POST_DATA = $req;
ob_start();
$y->handle($HTTP_RAW_POST_DATA);
ob_end_clean();
echo $req;
var_dump($val);
} else {
echo $req;
}
}
?>