/** * Delegate the call from the resource to the Soap client * * @param $method * @param $arguments * @return Response */ public function __call($method, $arguments) { $resourceUrl = $this->buildBaseUrl() . $this->getResourceUrl(); $soapClient = $this->client->getSoapFactory()->build($resourceUrl); return new Response($this->getResponseBody($soapClient, $method, $arguments), $this->getResponseHeaders($soapClient)); }