Powered by Ajaxy
Digg StumbleUpon LinkedIn YouTube Flickr Facebook Twitter RSS Reset

PHP: Lancer un Serveur SOAP

 méthode
{filelink=15356}

<?php
if (! extension_loaded ( "soap" )) {
  dl ( "php_soap.dll" );
}
ini_set ( "soap.wsdl_cache_enabled", "0" );
$server = new SoapServer ( "books.wsdl" );

// Créer une méthode
function getNouveauMessage($auteur)
{
  return array ("Détails" => "Destinateur", "Email" => demo@test.com, "titre" => "Mon cours php", "msg" => "Contenu de message" );
}
$server->AddFunction ( "getNouveauMessage" );
$server->handle ();
?>

No comments yet.

Leave a Comment