Jump to content

Override WebserviceRequest


aidiez

Recommended Posts

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.

Edited by aidiez (see edit history)
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...