Example #1
0
 /**
  * Process Webapi SOAP fault.
  *
  * @param Mage_Webapi_Model_Soap_Fault|Exception|string $fault
  * @param string $code
  * @return SoapFault|string
  */
 public function fault($fault = null, $code = null)
 {
     if ($fault instanceof Mage_Webapi_Model_Soap_Fault) {
         return $fault->toXml($this->_application->isDeveloperMode());
     } else {
         return parent::fault($fault, $code);
     }
 }