Start soap server : SOAP Server « Network « PHP






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

1.The SOAP Server Returns an Error if No Prefix Is Provided
2.The SOAP Server for the getGuid() Method