PHP Class NFePHP\Common\Soap\CurlSoap

Mostrar archivo Open project: nfephp-org/nfephp Class Usage Examples

Public Properties

Property Type Description
$lastMsg string lastMsg
$soapDebug string soapDebug
$soapTimeout integer soapTimeout

Protected Properties

Property Type Description
$infoCurl array infoCurl

Public Methods

Method Description
__construct ( string $priKeyPath = '', string $pubKeyPath = '', string $certKeyPath = '', string $timeout = 10, integer $sslProtocol ) __construct
getIBPTProd ( string $cnpj = '', string $tokenIBPT = '', string $ncm = '', string $siglaUF = '', string $exTarif = '0' ) : array getIBPTProd Consulta o serviço do IBPT para obter os impostos ao consumidor conforme Lei 12.741/2012
getProxy ( ) : array getProxy Retorna os dados de configuração do Proxy em um array
getWsdl ( $urlservice ) : boolean | string getWsdl Baixa o arquivo wsdl do webservice
send ( $urlservice, string $namespace, string $header, string $body, string $method ) : boolean | string Envia mensagem ao webservice
setProxy ( string $ipNumber, string $port, string $user = '', string $pass = '' ) : boolean setProxy Seta o uso do proxy

Protected Methods

Method Description
zCommCurl ( string $url, string $data = '', string $parametros = [], $port = 443 ) : string zCommCurl Realiza da comunicação via cURL

Private Methods

Method Description
zDebug ( array $info = [], string $data = '', string $resposta = '' ) zDebug

Method Details

__construct() public method

__construct
public __construct ( string $priKeyPath = '', string $pubKeyPath = '', string $certKeyPath = '', string $timeout = 10, integer $sslProtocol )
$priKeyPath string path para a chave privada
$pubKeyPath string path para a chave publica
$certKeyPath string path para o certificado
$timeout string tempo de espera da resposta do webservice
$sslProtocol integer

getIBPTProd() public method

getIBPTProd Consulta o serviço do IBPT para obter os impostos ao consumidor conforme Lei 12.741/2012
public getIBPTProd ( string $cnpj = '', string $tokenIBPT = '', string $ncm = '', string $siglaUF = '', string $exTarif = '0' ) : array
$cnpj string
$tokenIBPT string
$ncm string
$siglaUF string
$exTarif string
return array

getProxy() public method

getProxy Retorna os dados de configuração do Proxy em um array
public getProxy ( ) : array
return array

getWsdl() public method

getWsdl Baixa o arquivo wsdl do webservice
public getWsdl ( $urlservice ) : boolean | string
return boolean | string

send() public method

Envia mensagem ao webservice
public send ( $urlservice, string $namespace, string $header, string $body, string $method ) : boolean | string
$namespace string
$header string
$body string
$method string
return boolean | string

setProxy() public method

setProxy Seta o uso do proxy
public setProxy ( string $ipNumber, string $port, string $user = '', string $pass = '' ) : boolean
$ipNumber string numero IP do proxy server
$port string numero da porta usada pelo proxy
$user string nome do usuário do proxy
$pass string senha de acesso ao proxy
return boolean

zCommCurl() protected method

zCommCurl Realiza da comunicação via cURL
protected zCommCurl ( string $url, string $data = '', string $parametros = [], $port = 443 ) : string
$url string
$data string
$parametros string
return string

Property Details

$infoCurl protected_oe property

infoCurl
protected array $infoCurl
return array

$lastMsg public_oe property

lastMsg
public string $lastMsg
return string

$soapDebug public_oe property

soapDebug
public string $soapDebug
return string

$soapTimeout public_oe property

soapTimeout
public int $soapTimeout
return integer