Start soap server
<?php
if (! extension_loaded ( "soap" )) {
dl ( "php_soap.dll" );
}
ini_set ( "soap.wsdl_cache_enabled", "0" );
$server = new SoapServer ( "books.wsdl" );
function doMyBookSearch($bookTitle) {
return array ("bookTitle" => "MyBook", "bookYear" => 2005, "bookAuthor" => "s" );
}
$server->AddFunction ( "doMyBookSearch" );
$server->handle ();
?>
Related examples in the same category