/** * Query the SOAP server with the given method and parameters * * @param string $action The WSDL Action * @param array $data The data array * @return mixed Returns the result on success, false on failure */ public function sendRequest($action, $data) { if (!$this->connected) { $this->connect(); } try { $result = $this->client->__soapCall($action, $data); } catch (SoapFault $fault) { $this->handleError($fault->faultstring); } return $result; }