mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-12-06 09:38:23 +01:00
27 lines
489 B
PHP
27 lines
489 B
PHP
<?php
|
|
set_magic_quotes_runtime(0);
|
|
|
|
// Soap Server.
|
|
require_once('./lib/nusoap.php');
|
|
|
|
// Create the soap Object
|
|
$s = new soap_server;
|
|
$ns='oscommerce';
|
|
$s->configureWSDL('WebServicesOSCommerceForDolibarrTest',$ns);
|
|
$s->wsdl->schemaTargetNamespace=$ns;
|
|
|
|
// Register a method available for clients
|
|
$s->register('hello');
|
|
|
|
function hello($name){
|
|
|
|
$returnedString = "Coucou ** de Tetiaroa ".$name." !";
|
|
return $returnedString;
|
|
|
|
}
|
|
|
|
// Return the results.
|
|
$s->service($HTTP_RAW_POST_DATA);
|
|
?>
|
|
|