protected function callSoapMethod($method)
    {
        $args = func_get_args();
        array_shift($args);

        LogHandler::log($args, LoggerInterface::LEVEL_INFO, 'request_object');

        try {
            $response = call_user_func_array([$this->getSoapClient(), $method], $args);
            LogHandler::log($response, LoggerInterface::LEVEL_INFO, 'response_object');
        } catch (\SoapFault $e) {
            LogHandler::log(
                'SOAP ERROR (' . $e->faultcode . '): ' . $e->getMessage(),
                LoggerInterface::LEVEL_ERROR,
                'error'
            );
            throw new \SoapFault($e->faultcode, $e->faultstring);
        }

        $this->validateResponseCertificate();

        LogHandler::log(
            "Response certificate validated successfully",
            LoggerInterface::LEVEL_INFO,
            'response_certificate_validated'
        );

        return $response;
    }
protected function callSoapMethod($method)
    {
        $args = func_get_args();
        array_shift($args);

        LogHandler::log($args, LoggerInterface::LEVEL_INFO, 'request_object');

        try {
            $response = call_user_func_array([$this->getSoapClient(), $method], $args);
            LogHandler::log($response, LoggerInterface::LEVEL_INFO, 'response_object');
        } catch (\SoapFault $e) {
            LogHandler::log(
                'SOAP ERROR (' . $e->faultcode . '): ' . $e->getMessage(),
                LoggerInterface::LEVEL_ERROR,
                'error'
            );
            throw new \SoapFault($e->faultcode, $e->faultstring);
        }

        $this->validateResponseCertificate();

        LogHandler::log(
            "Response certificate validated successfully",
            LoggerInterface::LEVEL_INFO,
            'response_certificate_validated'
        );

        return $response;
    }
protected function callSoapMethod ( $ method ) { $ args = func_get_args ( ) ; array_shift ( $ args ) ; LogHandler :: log ( $ args , LoggerInterface :: LEVEL_INFO , 'request_object' ) ; try { $ response = call_user_func_array ( [ $ this -> getSoapClient ( ) , $ method ] , $ args ) ; LogHandler :: log ( $ response , LoggerInterface :: LEVEL_INFO , 'response_object' ) ; } catch ( \ SoapFault $ e ) { LogHandler :: log ( 'SOAP ERROR (' . $ e -> faultcode . '): ' . $ e -> getMessage ( ) , LoggerInterface :: LEVEL_ERROR , 'error' ) ; throw new \ SoapFault ( $ e -> faultcode , $ e -> faultstring ) ; } $ this -> validateResponseCertificate ( ) ; LogHandler :: log ( "Response certificate validated successfully" , LoggerInterface :: LEVEL_INFO , 'response_certificate_validated' ) ; return $ response ; }
Call to SOAP client methods and validate their response

@param string $method Method name
@return mixed
@throws InvalidCertificateException
@throws \SoapFault
Call to SOAP client methods and validate their response