Hi,
I'm trying to override the fetch function of WebserviceRequest.php file. But when I override it, when I use the webservice doesn't work.
Can anyone help me to solve this? How can I override the fetch function? I've tried this...
class WebserviceRequest extends WebserviceRequestCore
{
public function fetch($key, $method, $url, $params, $bad_class_name, $inputXml = null)
{
parent::fetch($key, $method, $url, $params, $bad_class_name, $inputXml = null);
myfile = fopen("method.txt", "a") or die("Unable to open file!");
$txt = "Metodo:\n".$this->method;
fwrite($myfile, $txt);
fclose($myfile);
}
}
Thanks in advance.