extranet/includes/giant/modulesGiants/SwitchFunctionSoap.php
2011-04-06 13:13:14 +00:00

32 lines
714 B
PHP

<?php
/**
* Fonction de switche entre les méthodes de Giant.
*
* @param $name
* @param $structure
* @param $soap_client
*/
function SwitchWSDLFunction($name, &$structure, &$soap_client)
{
switch ($name)
{
case 'Search':
return ($soap_client->Search($structure));
break;
case 'AdvancedSearch':
return ($soap_client->AdvancedSearch($structure));
break;
case 'RetrieveOptions':
return ($soap_client->RetrieveOptions($structure));
break;
case 'OrderDataSet':
return ($soap_client->OrderDataSet($structure));
break;
case 'RetrieveDataSet':
return ($soap_client->RetrieveDataSet($structure));
break;
default:
return (EXIT_FAILURE);
}
}
?>