Jump to content

Override WebserviceRequest


Recommended Posts


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);



Thanks in advance.

Edited by aidiez (see edit history)

Share this post

Link to post
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...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More