<?php
/**
 * This file aims to show you how to use this generated package.
 * In addition, the goal is to show which methods are available and the first needed parameter(s)
 * You have to use an associative array such as:
 * - the key must be a constant beginning with WSDL_ from AbstractSoapClientBase class (each generated ServiceType class extends this class)
 * - the value must be the corresponding key value (each option matches a {@link http://www.php.net/manual/en/soapclient.soapclient.php} option)
 * $options = array(
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://nfehomologacao.etransparencia.com.br/sp.taboaodaserra/webservice/aws_nfe.aspx?wsdl',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_TRACE => true,
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_LOGIN => 'you_secret_login',
 * \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_PASSWORD => 'you_secret_password',
 * );
 * etc...
 */
require_once __DIR__ . '/vendor/autoload.php';
/**
 * Minimal options
 */
$options = array(
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_URL => 'https://nfehomologacao.etransparencia.com.br/sp.taboaodaserra/webservice/aws_nfe.aspx?wsdl',
    \WsdlToPhp\PackageBase\AbstractSoapClientBase::WSDL_CLASSMAP => ClassMap::get(),
);
/**
 * Samples for PROCESSARPS ServiceType
 */
$pROCESSARPS = new \ServiceType\PROCESSARPS($options);
/**
 * Sample call for PROCESSARPS operation/method
 */
if ($pROCESSARPS->PROCESSARPS(new \StructType\Ws_nfe_PROCESSARPS()) !== false) {
    print_r($pROCESSARPS->getResult());
} else {
    print_r($pROCESSARPS->getLastError());
}
/**
 * Samples for CONSULTANOTASPROTOCOLO ServiceType
 */
$cONSULTANOTASPROTOCOLO = new \ServiceType\CONSULTANOTASPROTOCOLO($options);
/**
 * Sample call for CONSULTANOTASPROTOCOLO operation/method
 */
if ($cONSULTANOTASPROTOCOLO->CONSULTANOTASPROTOCOLO(new \StructType\Ws_nfe_CONSULTANOTASPROTOCOLO()) !== false) {
    print_r($cONSULTANOTASPROTOCOLO->getResult());
} else {
    print_r($cONSULTANOTASPROTOCOLO->getLastError());
}
/**
 * Samples for CONSNFSERECEBIDAS ServiceType
 */
$cONSNFSERECEBIDAS = new \ServiceType\CONSNFSERECEBIDAS($options);
/**
 * Sample call for CONSNFSERECEBIDAS operation/method
 */
if ($cONSNFSERECEBIDAS->CONSNFSERECEBIDAS(new \StructType\Ws_nfe_CONSNFSERECEBIDAS()) !== false) {
    print_r($cONSNFSERECEBIDAS->getResult());
} else {
    print_r($cONSNFSERECEBIDAS->getLastError());
}
/**
 * Samples for CONSULTAPROTOCOLO ServiceType
 */
$cONSULTAPROTOCOLO = new \ServiceType\CONSULTAPROTOCOLO($options);
/**
 * Sample call for CONSULTAPROTOCOLO operation/method
 */
if ($cONSULTAPROTOCOLO->CONSULTAPROTOCOLO(new \StructType\Ws_nfe_CONSULTAPROTOCOLO()) !== false) {
    print_r($cONSULTAPROTOCOLO->getResult());
} else {
    print_r($cONSULTAPROTOCOLO->getLastError());
}
/**
 * Samples for VERFICARPS ServiceType
 */
$vERFICARPS = new \ServiceType\VERFICARPS($options);
/**
 * Sample call for VERFICARPS operation/method
 */
if ($vERFICARPS->VERFICARPS(new \StructType\Ws_nfe_VERFICARPS()) !== false) {
    print_r($vERFICARPS->getResult());
} else {
    print_r($vERFICARPS->getLastError());
}
/**
 * Samples for CANCELANOTAELETRONICA ServiceType
 */
$cANCELANOTAELETRONICA = new \ServiceType\CANCELANOTAELETRONICA($options);
/**
 * Sample call for CANCELANOTAELETRONICA operation/method
 */
if ($cANCELANOTAELETRONICA->CANCELANOTAELETRONICA(new \StructType\Ws_nfe_CANCELANOTAELETRONICA()) !== false) {
    print_r($cANCELANOTAELETRONICA->getResult());
} else {
    print_r($cANCELANOTAELETRONICA->getLastError());
}
/**
 * Samples for IMPRESSAOLINKNFSE ServiceType
 */
$iMPRESSAOLINKNFSE = new \ServiceType\IMPRESSAOLINKNFSE($options);
/**
 * Sample call for IMPRESSAOLINKNFSE operation/method
 */
if ($iMPRESSAOLINKNFSE->IMPRESSAOLINKNFSE(new \StructType\Ws_nfe_IMPRESSAOLINKNFSE()) !== false) {
    print_r($iMPRESSAOLINKNFSE->getResult());
} else {
    print_r($iMPRESSAOLINKNFSE->getLastError());
}
