Example #1
0
 public function wsGetPatient($patient)
 {
     try {
         $soapClient = new SoapClient(CommonProperties::$SIP_WSDL);
         $token = $soapClient->login(CommonProperties::$SIP_LOGIN, CommonProperties::$SIP_PASSWORD);
         try {
             return $soapClient->getFullPatientWs($token, $patient);
         } catch (Exception $ex) {
             return $ex->faultcode;
         }
     } catch (Exception $ex) {
         return $ex->faultcode;
     }
 }