25 lines
582 B
PHP
25 lines
582 B
PHP
<?php
|
|
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);
|
|
}
|
|
}
|
|
?>
|