0
I have the following code with two functions:
public function getClientTemplates(){
$client_id = 31;
$this->Send('client_get', compact(array('client_id')));
}
public function Send($action, $post){
extract($post);
try {
$data = $this->soap->$action($post);
} catch (SoapFault $e) {
$this->addError('ISPConfig said: SOAP Error. '.$e->getMessage());
}
}
I have a SOAP call that needs some parameters, but I have no way of knowing how many parameters the turn function asks for.
As it is there in the code I compact and extract the variables, but I do not know how to send them without knowing what and their names.
It’s a valid solution yes, thanks Daniel
– Jarbas