Example #1
0
 public function getSignedDoc($sessionCode, $signedFile)
 {
     try {
         $result = $this->soap->getSignedDoc($sessionCode);
         if ($result['Status'] === 'OK') {
             return $this->replaceDataFile(html_entity_decode($result['SignedDocData']), $signedFile);
         } else {
             throw new SigningException($result['Status']);
         }
     } catch (\SoapFault $e) {
         $this->catchSoapError($e);
     }
 }