SOAP WSDL Generate Code

ServicosPortSoap11 / obterNotaFiscalLote

ASP AutoIt C C (Unicode) C++ C++ (Unicode) C# DataFlex Delphi Foxpro Go Java Node.js Objective-C Perl PHP Extension PowerBuilder Powershell PureBasic Python CkPython Ruby SQL Server Swift TCL VB.NET VB6 VBScript Xojo
#include <C_CkXmlW.h>
#include <C_CkHttpW.h>
#include <C_CkHttpResponseW.h>

void ChilkatSample(void)
    {
    HCkXmlW xml;
    const wchar_t *soapRequestBody;
    const wchar_t *endpoint;
    const wchar_t *soapAction;
    const wchar_t *contentType;
    HCkHttpW http;
    HCkHttpResponseW resp;
    HCkXmlW responseXml;
    int statusCode;
    const wchar_t *Envelope_xmlns;
    const wchar_t *resPedidoNFSe_versao;
    const wchar_t *CNPJ;
    const wchar_t *chvAcessoNFS_e;
    const wchar_t *dhRecbto;
    const wchar_t *infNFSe_versao;
    const wchar_t *cNFS_e;
    const wchar_t *v_mod;
    const wchar_t *serie;
    const wchar_t *nNFS_e;
    const wchar_t *dEmi;
    const wchar_t *hEmi;
    const wchar_t *tpNF;
    const wchar_t *refNF;
    const wchar_t *tpImp;
    const wchar_t *tpEmis;
    const wchar_t *cancelada;
    const wchar_t *motCanc;
    const wchar_t *dataCanc;
    const wchar_t *notaDebito;
    const wchar_t *notaSub;
    const wchar_t *canhoto;
    const wchar_t *ambienteEmi;
    const wchar_t *formaEmi;
    const wchar_t *empreitadaGlobal;
    const wchar_t *codRPS;
    const wchar_t *rps;
    const wchar_t *serierps;
    const wchar_t *dataEmissaoRpsPapel;
    const wchar_t *enviarEmail;
    const wchar_t *chaveAcessoSubstituida;
    const wchar_t *xNome;
    const wchar_t *xFant;
    const wchar_t *IM;
    const wchar_t *xEmail;
    const wchar_t *xSite;
    const wchar_t *xLgr;
    const wchar_t *nro;
    const wchar_t *xCpl;
    const wchar_t *xBairro;
    const wchar_t *cMun;
    const wchar_t *xMun;
    const wchar_t *UF;
    const wchar_t *CEP;
    const wchar_t *cPais;
    const wchar_t *xPais;
    const wchar_t *fone;
    const wchar_t *fone2;
    const wchar_t *IE;
    const wchar_t *regimeTrib;
    const wchar_t *IME;
    const wchar_t *protocoloObra;
    const wchar_t *codigoVinculacao;
    const wchar_t *xLogObra;
    const wchar_t *xComplObra;
    const wchar_t *vNumeroObra;
    const wchar_t *xBairroObra;
    const wchar_t *xCepObra;
    const wchar_t *cCidadeObra;
    const wchar_t *xCidadeObra;
    const wchar_t *xUfObra;
    const wchar_t *cPaisObra;
    const wchar_t *xPaisObra;
    const wchar_t *numeroArt;
    const wchar_t *numeroCei;
    const wchar_t *numeroProj;
    const wchar_t *numeroMatri;
    const wchar_t *xNomeTrans;
    const wchar_t *xCpfCnpjTrans;
    const wchar_t *xInscEstTrans;
    const wchar_t *xPlacaTrans;
    const wchar_t *xEndTrans;
    const wchar_t *cMunTrans;
    const wchar_t *xMunTrans;
    const wchar_t *xUfTrans;
    const wchar_t *cPaisTrans;
    const wchar_t *xPaisTrans;
    const wchar_t *vTipoFreteTrans;
    const wchar_t *nItem;
    const wchar_t *cServ;
    const wchar_t *cLCServ;
    const wchar_t *xServ;
    const wchar_t *localTributacao;
    const wchar_t *localVerifResServ;
    const wchar_t *uTrib;
    const wchar_t *qTrib;
    const wchar_t *vUnit;
    const wchar_t *vServ;
    const wchar_t *vDesc;
    const wchar_t *vDed;
    const wchar_t *vBCISS;
    const wchar_t *pISS;
    const wchar_t *vISS;
    const wchar_t *vBCINSS;
    const wchar_t *pRetINSS;
    const wchar_t *vRetINSS;
    const wchar_t *vRed;
    const wchar_t *vBCRetIR;
    const wchar_t *pRetIR;
    const wchar_t *vRetIR;
    const wchar_t *vBCCOFINS;
    const wchar_t *pRetCOFINS;
    const wchar_t *vRetCOFINS;
    const wchar_t *vBCCSLL;
    const wchar_t *pRetCSLL;
    const wchar_t *vRetCSLL;
    const wchar_t *vBCPISPASEP;
    const wchar_t *pRetPISPASEP;
    const wchar_t *vRetPISPASEP;
    const wchar_t *vRetOutrasRet;
    const wchar_t *totalAproxTribServ;
    const wchar_t *xPed;
    const wchar_t *nItemPed;
    const wchar_t *vRedBCST;
    const wchar_t *vBCST;
    const wchar_t *pISSST;
    const wchar_t *vISSST;
    const wchar_t *xPlaca;
    const wchar_t *dDataInicial;
    const wchar_t *hHoraInicial;
    const wchar_t *dDataFinal;
    const wchar_t *hHoraFinal;
    const wchar_t *unidade;
    const wchar_t *qtdHospede;
    const wchar_t *dDataEntrada;
    const wchar_t *hHoraEntrada;
    const wchar_t *dDataSaida;
    const wchar_t *hHoraSaida;
    const wchar_t *nome;
    const wchar_t *cpf;
    const wchar_t *dataNascimento;
    const wchar_t *tipo;
    const wchar_t *dataInicioEvento;
    const wchar_t *dataFimEvento;
    const wchar_t *nItemDesp;
    const wchar_t *xDesp;
    const wchar_t *dDesp;
    const wchar_t *vDesp;
    const wchar_t *numeroTitulo;
    const wchar_t *descricao;
    const wchar_t *quantidade;
    const wchar_t *vRetencao;
    const wchar_t *vRepasseTerceiros;
    const wchar_t *vTotal;
    const wchar_t *vLiq;
    const wchar_t *tipoPagamento;
    const wchar_t *numeroLote;
    const wchar_t *codigoReembolso;
    const wchar_t *dataPagamento;
    const wchar_t *vReemb;
    const wchar_t *vRedBCCivil;
    const wchar_t *vDescCondicional;
    const wchar_t *vDescICMS;
    const wchar_t *vtDed;
    const wchar_t *vtNF;
    const wchar_t *vtLiq;
    const wchar_t *totalAproxTrib;
    const wchar_t *vtLiqFaturas;
    const wchar_t *vtDespesas;
    const wchar_t *vBCSTISS;
    const wchar_t *vSTISS;
    const wchar_t *nFat;
    const wchar_t *dVenc;
    const wchar_t *vFat;
    const wchar_t *tipoVencFat;
    const wchar_t *descTipoVencFat;
    const wchar_t *infAdicLT;
    const wchar_t *infAdicES;
    const wchar_t *infAdic;
    const wchar_t *infAdicAT;
    const wchar_t *NumVeiculo;
    const wchar_t *sit;
    const wchar_t *mot;
    const wchar_t *Signature_Id;
    const wchar_t *SignedInfo_Id;
    const wchar_t *CanonicalizationMethod_Algorithm;
    const wchar_t *SignatureMethod_Algorithm;
    const wchar_t *Reference_Id;
    const wchar_t *Reference_URI;
    const wchar_t *Reference_Type;
    const wchar_t *Transform_Algorithm;
    const wchar_t *XPath;
    const wchar_t *DigestMethod_Algorithm;
    const wchar_t *DigestValue;
    const wchar_t *SignatureValue;
    const wchar_t *KeyInfo_Id;
    const wchar_t *X509SubjectName;
    const wchar_t *X509Certificate;

    xml = CkXmlW_Create();
    CkXmlW_putTag(xml,L"soapenv:Envelope");
    CkXmlW_AddAttribute(xml,L"xmlns:soapenv",L"http://schemas.xmlsoap.org/soap/envelope/");
    CkXmlW_AddAttribute(xml,L"xmlns",L"http://ws.pc.gif.com.br/");
    CkXmlW_AddAttribute(xml,L"xmlns:nfs",L"http://nfse.abrasf.org.br");
    CkXmlW_AddAttribute(xml,L"xmlns:ds",L"http://www.w3.org/2000/09/xmldsig#");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Header",L"");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe",TRUE,L"versao",L"?");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|CNPJ",L"token string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|chvAcessoNFS-e",L"string");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature",TRUE,L"Id",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo",TRUE,L"Id",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo|ds:CanonicalizationMethod",TRUE,L"Algorithm",L"http://www.w3.org/TR/2001/REC-xml-c14n-20010315");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo|ds:SignatureMethod",TRUE,L"Algorithm",L"http://www.w3.org/2000/09/xmldsig#rsa-sha1");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo|ds:Reference",TRUE,L"Id",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo|ds:Reference",TRUE,L"URI",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo|ds:Reference",TRUE,L"Type",L"?");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo|ds:Reference|ds:Transforms|ds:Transform",TRUE,L"Algorithm",L"?");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo|ds:Reference|ds:Transforms|ds:Transform|ds:XPath",L"string");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo|ds:Reference|ds:DigestMethod",TRUE,L"Algorithm",L"http://www.w3.org/2000/09/xmldsig#sha1");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignedInfo|ds:Reference|ds:DigestValue",L"BASE64_DATA");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:SignatureValue",L"...");
    CkXmlW_UpdateAttrAt(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:KeyInfo",TRUE,L"Id",L"?");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:KeyInfo|ds:X509Data|ds:X509SubjectName",L"string");
    CkXmlW_UpdateChildContent(xml,L"soapenv:Body|obterNotaFiscalLoteRequest|pedidoNFSe|ds:Signature|ds:KeyInfo|ds:X509Data|ds:X509Certificate",L"BqozVXeZZg==");

    // In a SOAP HTTP request, including the XML declaration (<?xml version="1.0" encoding="UTF-8"?>) in the XML body is generally not required. 
    CkXmlW_putEmitXmlDecl(xml,FALSE);
    soapRequestBody = CkXmlW_getXml(xml);

    endpoint = L"https://canoas-homol.infisc.com.br/services/nfse/ws/Servicos";
    soapAction = L"";
    //  For SOAP requests, the standard Content-Type is usually set to "text/xml" or "application/soap+xml"
    contentType = L"text/xml";

    http = CkHttpW_Create();

    CkHttpW_ClearHeaders(http);
    CkHttpW_SetRequestHeader(http,L"Content-Type",contentType);
    CkHttpW_SetRequestHeader(http,L"SOAPAction",soapAction);

    resp = CkHttpW_PostXml(http,endpoint,soapRequestBody,L"utf-8");
    if (CkHttpW_getLastMethodSuccess(http) == FALSE) {
        wprintf(L"%s\n",CkHttpW_lastErrorText(http));
        wprintf(L"Failed to send SOAP request.\n");
        CkXmlW_Dispose(xml);
        CkHttpW_Dispose(http);
        return;
    }

    // Get the XML response body.
    responseXml = CkXmlW_Create();
    CkHttpResponseW_GetBodyXml(resp,responseXml);

    statusCode = CkHttpResponseW_getStatusCode(resp);
    wprintf(L"response status code: %d\n",statusCode);

    CkHttpResponseW_Dispose(resp);

    // If the status code does not indicate succcess, then show the response XML,
    // which probably contains error information.
    if (statusCode != 200) {
        wprintf(L"%s\n",CkXmlW_getXml(responseXml));
        CkXmlW_Dispose(xml);
        CkHttpW_Dispose(http);
        CkXmlW_Dispose(responseXml);
        return;
    }

    wprintf(L"%s\n",CkXmlW_getXml(responseXml));

    // Parse the successful SOAP response XML.

    // This is a sample of the response XML, but the namespace prefixes will be different.
    // We can parse the result using "*" for the namespace prefixes (see below).

    Envelope_xmlns = CkXmlW_getAttrValue(responseXml,L"xmlns");
    resPedidoNFSe_versao = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|(versao)");
    CNPJ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|CNPJ");
    chvAcessoNFS_e = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|chvAcessoNFS-e");
    dhRecbto = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|dhRecbto");
    infNFSe_versao = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|(versao)");
    cNFS_e = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|cNFS-e");
    v_mod = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|mod");
    serie = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|serie");
    nNFS_e = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|nNFS-e");
    dEmi = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|dEmi");
    hEmi = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|hEmi");
    tpNF = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|tpNF");
    refNF = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|refNF");
    tpImp = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|tpImp");
    tpEmis = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|tpEmis");
    cancelada = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|cancelada");
    motCanc = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|motCanc");
    dataCanc = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|dataCanc");
    notaDebito = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|notaDebito");
    notaSub = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|notaSub");
    canhoto = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|canhoto");
    ambienteEmi = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|ambienteEmi");
    formaEmi = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|formaEmi");
    empreitadaGlobal = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|empreitadaGlobal");
    codRPS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|codRPS");
    rps = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|rps");
    serierps = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|serierps");
    dataEmissaoRpsPapel = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|dataEmissaoRpsPapel");
    enviarEmail = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|enviarEmail");
    chaveAcessoSubstituida = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|Id|chaveAcessoSubstituida");
    CNPJ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|CNPJ");
    xNome = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|xNome");
    xFant = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|xFant");
    IM = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|IM");
    xEmail = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|xEmail");
    xSite = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|xSite");
    xLgr = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|xLgr");
    nro = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|nro");
    xCpl = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|xCpl");
    xBairro = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|xBairro");
    cMun = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|cMun");
    xMun = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|xMun");
    UF = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|UF");
    CEP = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|CEP");
    cPais = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|cPais");
    xPais = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|end|xPais");
    fone = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|fone");
    fone2 = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|fone2");
    IE = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|IE");
    regimeTrib = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|prest|regimeTrib");
    CNPJ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|CNPJ");
    xNome = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|xNome");
    xLgr = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|xLgr");
    nro = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|nro");
    xCpl = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|xCpl");
    xBairro = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|xBairro");
    cMun = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|cMun");
    xMun = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|xMun");
    UF = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|UF");
    CEP = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|CEP");
    cPais = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|cPais");
    xPais = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|ender|xPais");
    xEmail = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|xEmail");
    IE = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|IE");
    IM = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|IM");
    IME = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|IME");
    fone = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|fone");
    fone2 = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|TomS|fone2");
    CNPJ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|intermediario|CNPJ");
    xNome = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|intermediario|xNome");
    IM = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|intermediario|IM");
    cMun = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|intermediario|cMun");
    xMun = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|intermediario|xMun");
    UF = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|intermediario|UF");
    protocoloObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|protocoloObra");
    codigoVinculacao = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|codigoVinculacao");
    xLogObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|xLogObra");
    xComplObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|xComplObra");
    vNumeroObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|vNumeroObra");
    xBairroObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|xBairroObra");
    xCepObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|xCepObra");
    cCidadeObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|cCidadeObra");
    xCidadeObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|xCidadeObra");
    xUfObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|xUfObra");
    cPaisObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|cPaisObra");
    xPaisObra = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|xPaisObra");
    numeroArt = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|numeroArt");
    numeroCei = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|numeroCei");
    numeroProj = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|numeroProj");
    numeroMatri = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|dadosDaObra|numeroMatri");
    xNomeTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|xNomeTrans");
    xCpfCnpjTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|xCpfCnpjTrans");
    xInscEstTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|xInscEstTrans");
    xPlacaTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|xPlacaTrans");
    xEndTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|xEndTrans");
    cMunTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|cMunTrans");
    xMunTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|xMunTrans");
    xUfTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|xUfTrans");
    cPaisTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|cPaisTrans");
    xPaisTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|xPaisTrans");
    vTipoFreteTrans = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|transportadora|vTipoFreteTrans");
    nItem = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|nItem");
    cServ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|cServ");
    cLCServ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|cLCServ");
    xServ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|xServ");
    localTributacao = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|localTributacao");
    localVerifResServ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|localVerifResServ");
    uTrib = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|uTrib");
    qTrib = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|qTrib");
    vUnit = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vUnit");
    vServ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vServ");
    vDesc = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vDesc");
    vDed = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vDed");
    vBCISS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vBCISS");
    pISS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|pISS");
    vISS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vISS");
    vBCINSS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vBCINSS");
    pRetINSS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|pRetINSS");
    vRetINSS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vRetINSS");
    vRed = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vRed");
    vBCRetIR = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vBCRetIR");
    pRetIR = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|pRetIR");
    vRetIR = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vRetIR");
    vBCCOFINS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vBCCOFINS");
    pRetCOFINS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|pRetCOFINS");
    vRetCOFINS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vRetCOFINS");
    vBCCSLL = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vBCCSLL");
    pRetCSLL = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|pRetCSLL");
    vRetCSLL = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vRetCSLL");
    vBCPISPASEP = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vBCPISPASEP");
    pRetPISPASEP = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|pRetPISPASEP");
    vRetPISPASEP = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vRetPISPASEP");
    vRetOutrasRet = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|vRetOutrasRet");
    totalAproxTribServ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|totalAproxTribServ");
    xPed = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|xPed");
    nItemPed = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|serv|nItemPed");
    vRedBCST = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|ISSST|vRedBCST");
    vBCST = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|ISSST|vBCST");
    pISSST = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|ISSST|pISSST");
    vISSST = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|ISSST|vISSST");
    xPlaca = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|estacionamento|xPlaca");
    dDataInicial = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|estacionamento|dDataInicial");
    hHoraInicial = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|estacionamento|hHoraInicial");
    dDataFinal = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|estacionamento|dDataFinal");
    hHoraFinal = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|estacionamento|hHoraFinal");
    unidade = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|hospedagem|unidade");
    qtdHospede = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|hospedagem|qtdHospede");
    dDataEntrada = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|hospedagem|dDataEntrada");
    hHoraEntrada = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|hospedagem|hHoraEntrada");
    dDataSaida = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|hospedagem|dDataSaida");
    hHoraSaida = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|hospedagem|hHoraSaida");
    nome = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|dependente|nome");
    cpf = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|dependente|cpf");
    dataNascimento = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|dependente|dataNascimento");
    nome = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|evento|nome");
    tipo = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|evento|tipo");
    dataInicioEvento = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|evento|dataInicioEvento");
    dataFimEvento = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|det|evento|dataFimEvento");
    nItemDesp = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|despesas|despesa|nItemDesp");
    xDesp = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|despesas|despesa|xDesp");
    dDesp = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|despesas|despesa|dDesp");
    vDesp = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|despesas|despesa|vDesp");
    nItem = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|nItem");
    numeroTitulo = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|numeroTitulo");
    descricao = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|descricao");
    unidade = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|unidade");
    quantidade = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|quantidade");
    vRetencao = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|vRetencao");
    vRepasseTerceiros = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|vRepasseTerceiros");
    vDesc = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|vDesc");
    vTotal = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|vTotal");
    vLiq = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|vLiq");
    tipoPagamento = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|tipoPagamento");
    numeroLote = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|numeroLote");
    codigoReembolso = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|codigoReembolso");
    dataPagamento = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|reembolso|dataPagamento");
    vServ = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vServ");
    vReemb = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vReemb");
    vRedBCCivil = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vRedBCCivil");
    vDesc = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vDesc");
    vDescCondicional = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vDescCondicional");
    vDescICMS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vDescICMS");
    vtDed = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vtDed");
    vtNF = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vtNF");
    vtLiq = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vtLiq");
    totalAproxTrib = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|totalAproxTrib");
    vRetIR = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|Ret|vRetIR");
    vRetPISPASEP = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|Ret|vRetPISPASEP");
    vRetCOFINS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|Ret|vRetCOFINS");
    vRetCSLL = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|Ret|vRetCSLL");
    vRetINSS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|Ret|vRetINSS");
    vRetOutrasRet = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|Ret|vRetOutrasRet");
    vtLiqFaturas = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vtLiqFaturas");
    vtDespesas = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|vtDespesas");
    vBCISS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|ISS|vBCISS");
    vISS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|ISS|vISS");
    vBCSTISS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|ISS|vBCSTISS");
    vSTISS = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|total|ISS|vSTISS");
    nItem = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|faturas|fat|nItem");
    nFat = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|faturas|fat|nFat");
    dVenc = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|faturas|fat|dVenc");
    vFat = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|faturas|fat|vFat");
    tipoVencFat = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|faturas|fat|tipoVencFat");
    descTipoVencFat = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|faturas|fat|descTipoVencFat");
    infAdicLT = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|infAdicLT");
    infAdicES = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|infAdicES");
    infAdic = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|infAdic");
    infAdicAT = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|infAdicAT");
    NumVeiculo = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|NFS-e|infNFSe|NumVeiculo");
    sit = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|sit");
    mot = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|mot");
    Signature_Id = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|(Id)");
    SignedInfo_Id = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|(Id)");
    CanonicalizationMethod_Algorithm = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|*:CanonicalizationMethod|(Algorithm)");
    SignatureMethod_Algorithm = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|*:SignatureMethod|(Algorithm)");
    Reference_Id = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|*:Reference|(Id)");
    Reference_URI = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|*:Reference|(URI)");
    Reference_Type = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|*:Reference|(Type)");
    Transform_Algorithm = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|*:Reference|*:Transforms|*:Transform|(Algorithm)");
    XPath = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|*:Reference|*:Transforms|*:Transform|*:XPath");
    DigestMethod_Algorithm = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|*:Reference|*:DigestMethod|(Algorithm)");
    DigestValue = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignedInfo|*:Reference|*:DigestValue");
    SignatureValue = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:SignatureValue");
    KeyInfo_Id = CkXmlW_chilkatPath(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:KeyInfo|(Id)");
    X509SubjectName = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:KeyInfo|*:X509Data|*:X509SubjectName");
    X509Certificate = CkXmlW_getChildContent(responseXml,L"*:Body|obterNotaFiscalLoteResponse|resPedidoNFSe|*:Signature|*:KeyInfo|*:X509Data|*:X509Certificate");


    CkXmlW_Dispose(xml);
    CkHttpW_Dispose(http);
    CkXmlW_Dispose(responseXml);

    }
Request XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://ws.pc.gif.com.br/" xmlns:nfs="http://nfse.abrasf.org.br" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <soapenv:Header/>
    <soapenv:Body>
        <obterNotaFiscalLoteRequest>
            <pedidoNFSe versao="?">
                <CNPJ>token string</CNPJ>
                <chvAcessoNFS-e>string</chvAcessoNFS-e>
                <ds:Signature Id="?">
                    <ds:SignedInfo Id="?">
                        <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
                        <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                        <ds:Reference Id="?" URI="?" Type="?">
                            <ds:Transforms>
                                <ds:Transform Algorithm="?">
                                    <ds:XPath>string</ds:XPath>
                                </ds:Transform>
                            </ds:Transforms>
                            <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                            <ds:DigestValue>BASE64_DATA</ds:DigestValue>
                        </ds:Reference>
                    </ds:SignedInfo>
                    <ds:SignatureValue>...</ds:SignatureValue>
                    <ds:KeyInfo Id="?">
                        <ds:X509Data>
                            <ds:X509SubjectName>string</ds:X509SubjectName>
                            <ds:X509Certificate>BqozVXeZZg==</ds:X509Certificate>
                        </ds:X509Data>
                    </ds:KeyInfo>
                </ds:Signature>
            </pedidoNFSe>
        </obterNotaFiscalLoteRequest>
    </soapenv:Body>
</soapenv:Envelope>
Response XML
<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns="http://ws.pc.gif.com.br/" xmlns:nfs="http://nfse.abrasf.org.br" xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
    <soapenv:Header/>
    <soapenv:Body>
        <obterNotaFiscalLoteResponse>
            <resPedidoNFSe versao="?">
                <CNPJ>token string</CNPJ>
                <chvAcessoNFS-e>string</chvAcessoNFS-e>
                <dhRecbto>string</dhRecbto>
                <NFS-e>
                    <infNFSe versao="?">
                        <Id>
                            <cNFS-e>positiveInteger</cNFS-e>
                            <mod>string</mod>
                            <serie>string</serie>
                            <nNFS-e>token string</nNFS-e>
                            <dEmi>date</dEmi>
                            <hEmi>string</hEmi>
                            <tpNF>integer</tpNF>
                            <refNF>string</refNF>
                            <tpImp>integer</tpImp>
                            <tpEmis>token string</tpEmis>
                            <cancelada>token string</cancelada>
                            <motCanc>token string</motCanc>
                            <dataCanc>date</dataCanc>
                            <notaDebito>token string</notaDebito>
                            <notaSub>token string</notaSub>
                            <canhoto>token string</canhoto>
                            <ambienteEmi>token string</ambienteEmi>
                            <formaEmi>token string</formaEmi>
                            <empreitadaGlobal>token string</empreitadaGlobal>
                            <codRPS>string</codRPS>
                            <rps>token string</rps>
                            <serierps>string</serierps>
                            <dataEmissaoRpsPapel>date</dataEmissaoRpsPapel>
                            <enviarEmail>token string</enviarEmail>
                            <chaveAcessoSubstituida>string</chaveAcessoSubstituida>
                        </Id>
                        <prest>
                            <CNPJ>token string</CNPJ>
                            <xNome>string</xNome>
                            <xFant>string</xFant>
                            <IM>string</IM>
                            <xEmail>string</xEmail>
                            <xSite>string</xSite>
                            <end>
                                <xLgr>string</xLgr>
                                <nro>string</nro>
                                <xCpl>string</xCpl>
                                <xBairro>string</xBairro>
                                <cMun>token string</cMun>
                                <xMun>string</xMun>
                                <UF>EX</UF>
                                <CEP>token string</CEP>
                                <cPais>token string</cPais>
                                <xPais>string</xPais>
                            </end>
                            <fone>token string</fone>
                            <fone2>token string</fone2>
                            <IE>string</IE>
                            <regimeTrib>token string</regimeTrib>
                        </prest>
                        <TomS>
                            <CNPJ>token string</CNPJ>
                            <xNome>string</xNome>
                            <ender>
                                <xLgr>string</xLgr>
                                <nro>string</nro>
                                <xCpl>string</xCpl>
                                <xBairro>string</xBairro>
                                <cMun>token string</cMun>
                                <xMun>string</xMun>
                                <UF>EX</UF>
                                <CEP>token string</CEP>
                                <cPais>token string</cPais>
                                <xPais>string</xPais>
                            </ender>
                            <xEmail>string</xEmail>
                            <IE>string</IE>
                            <IM>string</IM>
                            <IME>string</IME>
                            <fone>token string</fone>
                            <fone2>token string</fone2>
                        </TomS>
                        <intermediario>
                            <CNPJ>token string</CNPJ>
                            <xNome>string</xNome>
                            <IM>string</IM>
                            <cMun>token string</cMun>
                            <xMun>string</xMun>
                            <UF>EX</UF>
                        </intermediario>
                        <dadosDaObra>
                            <protocoloObra>string</protocoloObra>
                            <codigoVinculacao>string</codigoVinculacao>
                            <xLogObra>string</xLogObra>
                            <xComplObra>string</xComplObra>
                            <vNumeroObra>string</vNumeroObra>
                            <xBairroObra>string</xBairroObra>
                            <xCepObra>token string</xCepObra>
                            <cCidadeObra>token string</cCidadeObra>
                            <xCidadeObra>string</xCidadeObra>
                            <xUfObra>EX</xUfObra>
                            <cPaisObra>token string</cPaisObra>
                            <xPaisObra>string</xPaisObra>
                            <numeroArt>string</numeroArt>
                            <numeroCei>string</numeroCei>
                            <numeroProj>string</numeroProj>
                            <numeroMatri>string</numeroMatri>
                        </dadosDaObra>
                        <transportadora>
                            <xNomeTrans>string</xNomeTrans>
                            <xCpfCnpjTrans>string</xCpfCnpjTrans>
                            <xInscEstTrans>string</xInscEstTrans>
                            <xPlacaTrans>string</xPlacaTrans>
                            <xEndTrans>string</xEndTrans>
                            <cMunTrans>token string</cMunTrans>
                            <xMunTrans>string</xMunTrans>
                            <xUfTrans>EX</xUfTrans>
                            <cPaisTrans>token string</cPaisTrans>
                            <xPaisTrans>string</xPaisTrans>
                            <vTipoFreteTrans>token string</vTipoFreteTrans>
                        </transportadora>
                        <det>
                            <nItem>positiveInteger</nItem>
                            <serv>
                                <cServ>string</cServ>
                                <cLCServ>string</cLCServ>
                                <xServ>string</xServ>
                                <localTributacao>token string</localTributacao>
                                <localVerifResServ>token string</localVerifResServ>
                                <uTrib>string</uTrib>
                                <qTrib>string</qTrib>
                                <vUnit>string</vUnit>
                                <vServ>string</vServ>
                                <vDesc>string</vDesc>
                                <vDed>string</vDed>
                                <vBCISS>string</vBCISS>
                                <pISS>string</pISS>
                                <vISS>string</vISS>
                                <vBCINSS>string</vBCINSS>
                                <pRetINSS>string</pRetINSS>
                                <vRetINSS>string</vRetINSS>
                                <vRed>string</vRed>
                                <vBCRetIR>string</vBCRetIR>
                                <pRetIR>string</pRetIR>
                                <vRetIR>string</vRetIR>
                                <vBCCOFINS>string</vBCCOFINS>
                                <pRetCOFINS>string</pRetCOFINS>
                                <vRetCOFINS>string</vRetCOFINS>
                                <vBCCSLL>string</vBCCSLL>
                                <pRetCSLL>string</pRetCSLL>
                                <vRetCSLL>string</vRetCSLL>
                                <vBCPISPASEP>string</vBCPISPASEP>
                                <pRetPISPASEP>string</pRetPISPASEP>
                                <vRetPISPASEP>string</vRetPISPASEP>
                                <vRetOutrasRet>string</vRetOutrasRet>
                                <totalAproxTribServ>string</totalAproxTribServ>
                                <xPed>string</xPed>
                                <nItemPed>string</nItemPed>
                            </serv>
                            <ISSST>
                                <vRedBCST>string</vRedBCST>
                                <vBCST>string</vBCST>
                                <pISSST>string</pISSST>
                                <vISSST>string</vISSST>
                            </ISSST>
                            <estacionamento>
                                <xPlaca>string</xPlaca>
                                <dDataInicial>date</dDataInicial>
                                <hHoraInicial>string</hHoraInicial>
                                <dDataFinal>date</dDataFinal>
                                <hHoraFinal>string</hHoraFinal>
                            </estacionamento>
                            <hospedagem>
                                <unidade>string</unidade>
                                <qtdHospede>positiveInteger</qtdHospede>
                                <dDataEntrada>date</dDataEntrada>
                                <hHoraEntrada>string</hHoraEntrada>
                                <dDataSaida>date</dDataSaida>
                                <hHoraSaida>string</hHoraSaida>
                            </hospedagem>
                            <dependente>
                                <nome>string</nome>
                                <cpf>token string</cpf>
                                <dataNascimento>date</dataNascimento>
                            </dependente>
                            <evento>
                                <nome>string</nome>
                                <tipo>token string</tipo>
                                <dataInicioEvento>date</dataInicioEvento>
                                <dataFimEvento>date</dataFimEvento>
                            </evento>
                        </det>
                        <despesas>
                            <despesa>
                                <nItemDesp>positiveInteger</nItemDesp>
                                <xDesp>string</xDesp>
                                <dDesp>date</dDesp>
                                <vDesp>string</vDesp>
                            </despesa>
                        </despesas>
                        <reembolso>
                            <nItem>positiveInteger</nItem>
                            <numeroTitulo>string</numeroTitulo>
                            <descricao>string</descricao>
                            <unidade>string</unidade>
                            <quantidade>string</quantidade>
                            <vRetencao>string</vRetencao>
                            <vRepasseTerceiros>string</vRepasseTerceiros>
                            <vDesc>string</vDesc>
                            <vTotal>string</vTotal>
                            <vLiq>string</vLiq>
                            <tipoPagamento>string</tipoPagamento>
                            <numeroLote>string</numeroLote>
                            <codigoReembolso>string</codigoReembolso>
                            <dataPagamento>date</dataPagamento>
                        </reembolso>
                        <total>
                            <vServ>string</vServ>
                            <vReemb>string</vReemb>
                            <vRedBCCivil>string</vRedBCCivil>
                            <vDesc>string</vDesc>
                            <vDescCondicional>string</vDescCondicional>
                            <vDescICMS>string</vDescICMS>
                            <vtDed>string</vtDed>
                            <vtNF>string</vtNF>
                            <vtLiq>string</vtLiq>
                            <totalAproxTrib>string</totalAproxTrib>
                            <Ret>
                                <vRetIR>string</vRetIR>
                                <vRetPISPASEP>string</vRetPISPASEP>
                                <vRetCOFINS>string</vRetCOFINS>
                                <vRetCSLL>string</vRetCSLL>
                                <vRetINSS>string</vRetINSS>
                                <vRetOutrasRet>string</vRetOutrasRet>
                            </Ret>
                            <vtLiqFaturas>string</vtLiqFaturas>
                            <vtDespesas>string</vtDespesas>
                            <ISS>
                                <vBCISS>string</vBCISS>
                                <vISS>string</vISS>
                                <vBCSTISS>string</vBCSTISS>
                                <vSTISS>string</vSTISS>
                            </ISS>
                        </total>
                        <faturas>
                            <fat>
                                <nItem>positiveInteger</nItem>
                                <nFat>string</nFat>
                                <dVenc>date</dVenc>
                                <vFat>string</vFat>
                                <tipoVencFat>token string</tipoVencFat>
                                <descTipoVencFat>string</descTipoVencFat>
                            </fat>
                        </faturas>
                        <infAdicLT>token string</infAdicLT>
                        <infAdicES>token string</infAdicES>
                        <infAdic>string</infAdic>
                        <infAdicAT>token string</infAdicAT>
                        <NumVeiculo>string</NumVeiculo>
                    </infNFSe>
                </NFS-e>
                <sit>positiveInteger</sit>
                <mot>string</mot>
                <ds:Signature Id="?">
                    <ds:SignedInfo Id="?">
                        <ds:CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315"/>
                        <ds:SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1"/>
                        <ds:Reference Id="?" URI="?" Type="?">
                            <ds:Transforms>
                                <ds:Transform Algorithm="?">
                                    <ds:XPath>string</ds:XPath>
                                </ds:Transform>
                            </ds:Transforms>
                            <ds:DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1"/>
                            <ds:DigestValue>BASE64_DATA</ds:DigestValue>
                        </ds:Reference>
                    </ds:SignedInfo>
                    <ds:SignatureValue>...</ds:SignatureValue>
                    <ds:KeyInfo Id="?">
                        <ds:X509Data>
                            <ds:X509SubjectName>string</ds:X509SubjectName>
                            <ds:X509Certificate>BqozVXeZZg==</ds:X509Certificate>
                        </ds:X509Data>
                    </ds:KeyInfo>
                </ds:Signature>
            </resPedidoNFSe>
        </obterNotaFiscalLoteResponse>
    </soapenv:Body>
</soapenv:Envelope>