topic
stringlengths
1
63
text
stringlengths
1
577k
hboleaut
You use Fivewin also?
hboleaut
[quote="cnavarro":x4cpsyqg]You use Fivewin also?[/quote:x4cpsyqg] Yes, I use FiveWin.
hboleaut
Teddy, FWH provides native MS SQL support. You just need recent FWH version and Harbour. What FWH version are you using ?
hboleaut
[quote="Antonio Linares":1z12gkwq]Teddy, FWH provides native MS SQL support. You just need recent FWH version and Harbour. What FWH version are you using ?[/quote:1z12gkwq] I am using the following development environment: Harbour 3.2 FWH 18.01 Advantage Database Server 8.1 MS SQL Server 2008 R2 Can you guide me on how to use FWH native MS SQL support? What library do I need to include? Could you give me some samples on how to select dan update to the MS SQL database using FWH native MS SQL support? Thanks.
hboleaut
Guys, I have solved my issue regarding using ADORDD to connect to MS SQL Server database. I can retrieve data from a table and display them on the screen. Thanks. Is it possible to EXECUTE STORED PROCEDURE using ADORDD? If it is possible, can anyone give me a sample on how to accomplish this? Thanks.
hbpcre.lib
Antonio, estoy usando el Harbour provisto por Fivetech junto a FW8.12 para construir mi aplicación. Como el contrib.lib no viene incluido estoy tratando de compilar la clase TXml de xHarbour, incluyendo en mi proyecto las fuentes correspondientes de la versión 1.01 de Harbour. El problema surge de que al compilar obtengo el siguiente error: [code=fw:2xevkgkw]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Turbo Incremental Link <span style="color: #000000;">5.00</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span>, <span style="color: #000000;">2000</span> Borland<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_pcre_stack_malloc'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR812\LIB\HBRTL.LIB|hbregex<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_pcre_stack_free'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR812\LIB\HBRTL.LIB|hbregex<br /><br /> </div>[/code:2xevkgkw] Buscando en el foro de Harbour, Przemeck aclara que es por la falta de la lib hbpcre de Harbour, que tiene las funciones de expresiones regulares. Sería posible que la generaras e incuyeras en el Harbour de Fivetech? Creo que es interesante para todos que tengamos XML funcionando en nuestras aplicaciones, y regex es imprescindible. Un saludo
hbpcre.lib
Carlos, Aqui tienes hbpcre.lib <!-- m --><a class="postlink" href="http://www.mediafire.com/?sharekey=414c17b7b136abb70f83d91f6dff7c38ac08b5279d661969c95965eaa7bc68bc">http://www.mediafire.com/?sharekey=414c ... eaa7bc68bc</a><!-- m --> Lo incluiremos en próximos builds tambien, gracias <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
hbpcre.lib
¡Gracias! ¡Funciona perfecto! Una pregunta: Que cambia entre la versión provista por FiveTech y el binario que te bajas de harbour-project? Había pensado en bajarme y compilar Harbour de source forge, pero tengo que recompilar toooda la Fw y los accesorios que uso, a riesgo de introducir errores. Un saludo.
hbpcre.lib
Carlos, > Que cambia entre la versión provista por FiveTech y el binario que te bajas de harbour-project? La versión distribuida por FiveTech esta construida por nosotros y probada con FWH para garantizar el correcto funcionamiento de ambos. En principio puedes descargar la versión de Harbour desde el sitio de Harbour-Project pero en ese caso nosotros no podriamos garantizar que funcione correctamente <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
hbpcre.lib
Antonio En la versión de Harbour para 64 bits usando BCC7.1 las expresiones regulares no están funcionando correctamente. [quote="Carlos Mora":2iril4xt]Antonio, estoy usando el Harbour provisto por Fivetech junto a FW8.12 para construir mi aplicación. Como el contrib.lib no viene incluido estoy tratando de compilar la clase TXml de xHarbour, incluyendo en mi proyecto las fuentes correspondientes de la versión 1.01 de Harbour. El problema surge de que al compilar obtengo el siguiente error: [code=fw:2iril4xt]<div class="fw" id="{CB}" style="font-family: monospace;"><br />Turbo Incremental Link <span style="color: #000000;">5.00</span> Copyright <span style="color: #000000;">&#40;</span>c<span style="color: #000000;">&#41;</span> <span style="color: #000000;">1997</span>, <span style="color: #000000;">2000</span> Borland<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_pcre_stack_malloc'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR812\LIB\HBRTL.LIB|hbregex<br />Error: <span style="color: #000000;">Unresolved</span> external <span style="color: #ff0000;">'_pcre_stack_free'</span> referenced <span style="color: #0000ff;">from</span> C:\HARBOUR812\LIB\HBRTL.LIB|hbregex<br /><br /> </div>[/code:2iril4xt] Buscando en el foro de Harbour, Przemeck aclara que es por la falta de la lib hbpcre de Harbour, que tiene las funciones de expresiones regulares. Sería posible que la generaras e incuyeras en el Harbour de Fivetech? Creo que es interesante para todos que tengamos XML funcionando en nuestras aplicaciones, y regex es imprescindible. Un saludo[/quote:2iril4xt]
hbpgsql/harbour + xbrowse
gostaria de saber como usar xbrowse com hbpgsql "I would like to know how to use xbrowse hbpgsql" HARBOUR CVS....
hbpgsql/harbour + xbrowse
Hope you will be able to open a table object with a query. If the class of the object has some minimum methods like goto, gotop, recno, etc.xbrowse may be able to browse the object. Please help me to try testing this: First open the table / query in your own way. Let us call the object oQry. Then test whether xbrowse can automatically browse the object by: [code=fw:1bm9vcl7]<div class="fw" id="{CB}" style="font-family: monospace;"><br />? XBrowsableObj<span style="color: #000000;">&#40;</span> oQry <span style="color: #000000;">&#41;</span>.<br />&nbsp;</div>[/code:1bm9vcl7] If the result is .T., then xbrowse can browse the object without much effort from your side. In such a case, next step is: [code=fw:1bm9vcl7]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd DATASOURCE oQry FIELDS oQry:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// or whatever way you access the fields.</span><br />oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp;</div>[/code:1bm9vcl7] Depending on the results, I can guide you next.
hbpgsql/harbour + xbrowse
[quote="nageswaragunupudi":3goy3flj]Hope you will be able to open a table object with a query. If the class of the object has some minimum methods like goto, gotop, recno, etc.xbrowse may be able to browse the object. Please help me to try testing this: First open the table / query in your own way. Let us call the object oQry. Then test whether xbrowse can automatically browse the object by: [code=fw:3goy3flj]<div class="fw" id="{CB}" style="font-family: monospace;"><br />? XBrowsableObj<span style="color: #000000;">&#40;</span> oQry <span style="color: #000000;">&#41;</span>.<br />&nbsp;</div>[/code:3goy3flj] If the result is .T., then xbrowse can browse the object without much effort from your side. In such a case, next step is: [code=fw:3goy3flj]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />@ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd DATASOURCE oQry FIELDS oQry:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span> <span style="color: #B900B9;">// or whatever way you access the fields.</span><br />oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />oWnd:<span style="color: #000000;">oClient</span> := oBrw<br /><span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />&nbsp;</div>[/code:3goy3flj] Depending on the results, I can guide you next.[/quote:3goy3flj] return .F.
hbpgsql/harbour + xbrowse
hello ; G. N. Rao. Hyderabad, India know what can I do? saberia oque posso fazer ?
hbpgsql/harbour + xbrowse
Please try adopting the following code to your query. [code=fw:2oubb28g]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">function</span> PgQryBrowse<span style="color: #000000;">&#40;</span> oQry <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #0000ff;">DEFINE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   <br />   @ <span style="color: #000000;">0</span>,<span style="color: #000000;">0</span> <span style="color: #0000ff;">XBROWSE</span> oBrw <span style="color: #0000ff;">OF</span> oWnd ;<br />         FIELDS oQry:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, oQry:<span style="color: #000000;">FieldGet</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />         HEADERS oQry:<span style="color: #000000;">FieldName</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span>, oQry:<span style="color: #000000;">FieldName</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">2</span> <span style="color: #000000;">&#41;</span> ;<br />         CELL LINES<br />   <br />   WITH OBJECT oBrw<br />      :<span style="color: #000000;">nDataType</span>        := DATATYPE_USER<br />      <br />      :<span style="color: #000000;">bGoTop</span>           := <span style="color: #000000;">&#123;</span> || oQry:<span style="color: #000000;">GoTo</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bGoBottom</span>        := <span style="color: #000000;">&#123;</span> || oQry:<span style="color: #000000;">GoTo</span><span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bKeyCount</span>        := <span style="color: #000000;">&#123;</span> || oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bKeyNo</span>           := ;<br />      :<span style="color: #000000;">bBookMark</span>        := <span style="color: #000000;">&#123;</span> |n| <span style="color: #00C800;">If</span><span style="color: #000000;">&#40;</span> n == <span style="color: #00C800;">nil</span>, oQry:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>, <span style="color: #000000;">&#40;</span> oQry:<span style="color: #000000;">GoTo</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> n, oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span>, oQry:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bBof</span>             := <span style="color: #000000;">&#123;</span> || oQry:<span style="color: #000000;">Bof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bEof</span>             := <span style="color: #000000;">&#123;</span> || oQry:<span style="color: #000000;">Eof</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      :<span style="color: #000000;">bSkip</span>            := <span style="color: #000000;">&#123;</span> |n| PgSkipper<span style="color: #000000;">&#40;</span> oQry, n <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#125;</span><br />      <br />   END<br />   <br />   oBrw:<span style="color: #000000;">CreateFromCode</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oWnd:<span style="color: #000000;">oClient</span>         := oBrw<br />   <br />   <span style="color: #0000ff;">ACTIVATE</span> <span style="color: #0000ff;">WINDOW</span> oWnd<br />   <br /><span style="color: #00C800;">return</span> <span style="color: #00C800;">nil</span><br /><br /><span style="color: #00C800;">function</span> PgSkipper<span style="color: #000000;">&#40;</span> oQry, nToSkip <span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">local</span> nSkipped    := <span style="color: #000000;">0</span><br />   <span style="color: #00C800;">local</span> nRecNo      := oQry:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <br />   <span style="color: #00C800;">DEFAULT</span> nToSkip   := <span style="color: #000000;">1</span><br />   <br />   <span style="color: #00C800;">if</span> oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> > <span style="color: #000000;">0</span><br />      oQry:<span style="color: #000000;">GoTo</span><span style="color: #000000;">&#40;</span> <span style="color: #0000ff;">Max</span><span style="color: #000000;">&#40;</span> <span style="color: #000000;">1</span>, <span style="color: #0000ff;">Min</span><span style="color: #000000;">&#40;</span> nRecNo + nToSkip, oQry:<span style="color: #000000;">LastRec</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />      nSkipped          := oQry:<span style="color: #000000;">RecNo</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> - nRecNo<br />   <span style="color: #00C800;">endif</span><br /><br /><span style="color: #00C800;">return</span> nSkipped<br /> </div>[/code:2oubb28g] Please test and post the results.
hbpgsql/harbour + xbrowse
I did the test shows only one record ... and the bank has 10 000 records
hbpgsql/harbour + xbrowse
[quote="luiz53":2xdj8zaw]I did the test shows only one record ... and the bank has 10 000 records[/quote:2xdj8zaw] I am sorry, there was a small mistake in the code I posted originally. I corrected the above code in PgSkipper() function. Please use the revised code above
hbsix.lib
Hi, i am actually using Fivewin, clipper and Hypersix RDD in my app (network 5 stations in a veterinary clinic) I am using many functions of hypersix ( sx_setscope(), sx_keycount()....) I wish to transfer to Harbour. Would this hbsix.lib (in Harbour) help me to use my actual code? Thanks for your help
hbsix.lib
[quote="patili":krpofg9p]Hi, i am actually using Fivewin, clipper and Hypersix RDD in my app (network 5 stations in a veterinary clinic) I am using many functions of hypersix ( sx_setscope(), sx_keycount()....) I wish to transfer to Harbour. Would this hbsix.lib (in Harbour) help me to use my actual code?[/quote:krpofg9p] Good decision! <!-- s;-) --><img src="{SMILIES_PATH}/icon_wink.gif" alt=";-)" title="Wink" /><!-- s;-) --> Now, if you are used to use the SIX library, I recommend you take a look at xHarbour.com's distribution of xharbour.com. It has a RMDBFCDX.lib which is a Fast Filter RDD lib, just like SIX was/is for Clipper. Even better, it has all SIX functions/commands, ready for you to use in xHarbour. Simple <!-- s:) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":)" title="Smile" /><!-- s:) --> Patrick
hbsqlitepp
Hello, My friend Manu Expósito has developed a class for native access to Sqlite, as he says it this post: [url:2pc6pjof]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=43395&p=264123&sid=b6981d65766e5d529e61eebb06f5aeba&sid=b6981d65766e5d529e61eebb06f5aeba#p264123[/url:2pc6pjof]. With his permission I've uploaded the class to my site and you can download from [url:2pc6pjof]https&#58;//alanit&#46;com/download/hbsqlitepp_general-2023-10-02-0&#46;7z[/url:2pc6pjof]. Kind regards, José Luis
hbsqlitepp
Hola a todos, Mi amigo Manu Expósito ha desarrollado una clase para acceder nativamente a Sqlite, como dice en esta entrada: [url:24eprfx4]https&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=43395&p=264123&sid=b6981d65766e5d529e61eebb06f5aeba&sid=b6981d65766e5d529e61eebb06f5aeba#p264123[/url:24eprfx4]. Con su permiso, he subido la clase a mi sitio web y la podéis descargar desde [url:24eprfx4]https&#58;//alanit&#46;com/download/hbsqlitepp_general-2023-10-02-0&#46;7z[/url:24eprfx4]. Saludos, José Luis
hbsqlitepp
Saludos, No es posible descargarla, hay un problema en el link
hbsqlitepp
[url:5seregqd]https&#58;//github&#46;com/FiveTechSoft/FWH_tools/blob/master/hbpgpp_general-2023-10-02-0&#46;7z[/url:5seregqd]
hbsqlitepp
No Antonio... La que ellos quieren es la de acceder a SQLite, la que tú dices es la que hice para Postgres
hbsqlitepp
[quote="ruben Dario":1ba1lwx0]Saludos, No es posible descargarla, hay un problema en el link[/quote:1ba1lwx0] Yo he pronado el enlace y va perfectamente!!!
hbsqlitepp
Gracias Manu por la aclaración <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> Aquí está: [url:2z4jp7n9]https&#58;//github&#46;com/FiveTechSoft/FWH_tools/blob/master/hbsqlitepp_general-2023-10-02-0&#46;7z[/url:2z4jp7n9]
hbsqlitepp
Me marca un error el test2 . [code=fw:20m1slr6]<div class="fw" id="{CB}" style="font-family: monospace;"><br />&nbsp; &nbsp;<span style="color: #0000ff;">TEXT</span> INTO cCreaTable<br />&nbsp; &nbsp; &nbsp; &nbsp; CREATE TABLE <span style="color: #00C800;">IF</span> NOT <span style="color: #0000ff;">EXISTS</span> situaciones<br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#40;</span> <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">id</span> INTEGER PRIMARY KEY AUTOINCREMENT, <br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; situacion VARCHAR<span style="color: #000000;">&#40;</span><span style="color: #000000;">140</span><span style="color: #000000;">&#41;</span> NOT nullptr <br />&nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; ENDTEXT<br />&nbsp;</div>[/code:20m1slr6] No me resuelve "nullptr" al ejecutar
hbsqlitepp
It should be: [code=fw:34mzj7gb]<div class="fw" id="{CB}" style="font-family: monospace;"><br /><span style="color: #0000ff;">TEXT</span> INTO cCreaTable<br />    CREATE TABLE <span style="color: #00C800;">IF</span> NOT <span style="color: #0000ff;">EXISTS</span> situaciones<br />        <span style="color: #000000;">&#40;</span><br />            <span style="color: #0000ff;">id</span> INTEGER PRIMARY KEY AUTOINCREMENT,<br />            situacion VARCHAR<span style="color: #000000;">&#40;</span><span style="color: #000000;">140</span><span style="color: #000000;">&#41;</span> NOT <span style="color: #00C800;">NULL</span><br />        <span style="color: #000000;">&#41;</span><br />ENDTEXT<br /> </div>[/code:34mzj7gb]
hbsqlitepp
jajaja el "busca/sustituye" me pasó una mala jugada!!! Es como dice Lailton. Saludos
hbsqlitepp
Hay una nueva versión de la librería y de la versión para PostgreSQL que he subido a <!-- m --><a class="postlink" href="https://github.com/JoseluisSanchez/hbsqlite-hbpg">https://github.com/JoseluisSanchez/hbsqlite-hbpg</a><!-- m --> Saludos,
hbssl.lib (SOLUCIONADO)
Buenas tardes, estoy intentando acceder a una cuenta de gmail por medio de TIPClientPOP, para lograrlo tengo que usar una conexión segura SSL con las librerías hbssl, hbssls, libeay32 y ssleay32. Me las he descargado del siguiente enlace <!-- m --><a class="postlink" href="https://bitbucket.org/fivetech/harbour-xharbour-builds/downloads/harbour_hbssl_bcc7_32_2016Dec.zop">https://bitbucket.org/fivetech/harbour- ... 016Dec.zop</a><!-- m -->, pero al enlazarlas me da : [quote:3lauqs86]Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc. Error: Unresolved external '_SSL_library_init' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|ssl Error: Unresolved external '_SSL_load_error_strings' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|ssl Error: Unresolved external '_SSLeay_version' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|ssl Error: Unresolved external '_SSLeay' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|ssl Error: Unresolved external '_SSL_free' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|ssl Error: Unresolved external '_SSL_CTX_free' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_SSLv3_method' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_SSLv3_server_method' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_SSLv3_client_method' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_TLSv1_method' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_TLSv1_server_method' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_TLSv1_client_method' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_SSLv23_server_method' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_SSLv23_client_method' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_SSLv23_method' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx Error: Unresolved external '_SSL_CTX_new' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|sslctx ..... Error: Unable to perform link [/quote:3lauqs86] Sospecho que las librerías no son compatibles. Uso : FWH16.01, bcc 7.0 y Harbour 3.2.0dev (r1601050904) Puedo conseguirlas en algún otro enlace. Gracias.
hbssl.lib (SOLUCIONADO)
Prueba a enlazar ssleay32.lib
hbssl.lib (SOLUCIONADO)
Mi fichero b32.bc [quote:3b89rzqz]c0w32.obj + .\objh\icm.obj .\objh\reorgani.obj + .\objh\tsii.obj .\objh\tsiienv.obj .\objh\tsiicons.obj + .\objh\conex_si.obj .\objh\tsiinif.obj .\objh\tsiibaja.obj + .\objh\listSII.obj .\objh\tmixml.obj .\objh\testpop3.obj, + icmwh16.exe , + , + \FWH1601\FWH\lib\icmfwh.lib + \FWH1601\FWH\lib\icm50a.lib + \FWH1601\FWH\lib\FiveH.lib \FWH1601\FWH\lib\FiveHC.lib + \FWH1601\harbour\lib\hbwin.lib + \FWH1601\harbour\lib\gtgui.lib + \FWH1601\harbour\lib\hbrtl.lib + \FWH1601\harbour\lib\hbvm.lib + \FWH1601\harbour\lib\hblang.lib + \FWH1601\harbour\lib\hbmacro.lib + \FWH1601\harbour\lib\hbrdd.lib + \FWH1601\harbour\lib\rddntx.lib + \FWH1601\harbour\lib\rddcdx.lib + \FWH1601\harbour\lib\rddfpt.lib + \FWH1601\harbour\lib\hbsix.lib + \FWH1601\harbour\lib\hbdebug.lib + \FWH1601\harbour\lib\hbcommon.lib + \FWH1601\harbour\lib\hbpp.lib + \FWH1601\harbour\lib\hbcpage.lib + \FWH1601\harbour\lib\hbcplr.lib + \FWH1601\harbour\lib\hbct.lib + \FWH1601\harbour\lib\hbpcre.lib + \FWH1601\harbour\lib\xhb.lib + \FWH1601\harbour\lib\hbziparc.lib + \FWH1601\harbour\lib\hbmzip.lib + \FWH1601\harbour\lib\hbzlib.lib + \FWH1601\harbour\lib\minizip.lib + \FWH1601\harbour\lib\png.lib + \FWH1601\harbour\lib\hbusrrdd.lib + \FWH1601\harbour\lib\libeay32.lib + \FWH1601\harbour\lib\ssleay32.lib + \FWH1601\harbour\lib\hbtip.lib + \FWH1601\harbour\lib\hbssl.lib + \FWH1601\harbour\lib\hbssls.lib + \FWH1601\bcc7\lib\cw32.lib + \FWH1601\bcc7\lib\uuid.lib + \FWH1601\bcc7\lib\import32.lib + \FWH1601\bcc7\lib\psdk\odbc32.lib + \FWH1601\bcc7\lib\psdk\nddeapi.lib + \FWH1601\bcc7\lib\psdk\iphlpapi.lib + \FWH1601\bcc7\lib\psdk\msimg32.lib + \FWH1601\bcc7\lib\psdk\psapi.lib + \FWH1601\bcc7\lib\psdk\rasapi32.lib + \FWH1601\bcc7\lib\psdk\gdiplus.lib + \FWH1601\bcc7\lib\psdk\shell32.lib , + [/quote:3b89rzqz]
hbssl.lib (SOLUCIONADO)
La librería ssleay32.lib se construye a partir de ssleay32.dll Genera el fichero .DEF asi: impdef.exe ssleay32.def ssleay32.dll Modifica ssleay32.def añadiendo los subrayados iniciales, por ejemplo: _SSL_library_init en vez de SSL_library_init Construye la librería .LIB a partir del fichero .DEF
hbssl.lib (SOLUCIONADO)
Ya he generado ssleay32.lib y libeay32.lib, añadiendo un guión bajo al inicio de los nombre de función en el archivo DEF, de todas las que me ha dado error al enlazar. Ahora sólo me queda esta función : [quote:3ddlm0qt]Turbo Incremental Link 6.70 Copyright (c) 1997-2014 Embarcadero Technologies, Inc. Error: Unresolved external '_hb_sockexItemReplace' referenced from D:\FWH1601\HARBOUR\LIB\HBSSL.LIB|ssl_sock Error: Unable to perform link [/quote:3ddlm0qt] No la encuentro en ninguna librería.
hbssl.lib (SOLUCIONADO)
Lo he solucionando usando la versión de Harbour 3.2 32bits 20160309 En esa versión, la librería HBRTL.LIB tiene la función que faltaba.
hbssl.lib (SOLUCIONADO)
muy bien <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
hbssl.lib (SOLUCIONADO)
He conseguido acceder a los correos de una cuenta gmail, gracias a este magnífico foro y sobre todo a Antonio. Para devolver un poco de la ayuda recibida, quiero compartir algo que puede servirle a otros compañeros del foro. Después de haber descargado los correos de mi cuenta gmail a través del servidor pop, se quedan marcados y sólo se descargan los nuevos correos que llegan a la cuenta. Pero hay una forma de descargar los correos de los últimos 30 días, usando el "modo reciente", poniendo delante del usuario la palabra recent (recent:nombre de usuario). Yo lo he conseguido así : [code=fw:1u3m4lmg]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00C800;">static</span> <span style="color: #00C800;">function</span> CONECTAR <span style="color: #000000;">&#40;</span>cServidor,cUsuario,cClave<span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">local</span> oCli := <span style="color: #00C800;">Nil</span><br /><br />    <span style="color: #00C800;">try</span><br />        oCli := TIPClientPOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pops://"</span> +  STRTRAN<span style="color: #000000;">&#40;</span> cUsuario, <span style="color: #ff0000;">"@"</span>, <span style="color: #ff0000;">"&at;"</span> <span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">":"</span> + cClave + <span style="color: #ff0000;">"@"</span> + cServidor <span style="color: #000000;">&#41;</span><br /><br />        oCli:<span style="color: #000000;">oURL</span>:<span style="color: #000000;">cUserId</span> := <span style="color: #ff0000;">'recent:'</span> + cUsuario    && Para acceder a los mensajes de los £ltimos <span style="color: #000000;">30</span> d¡as <span style="color: #000000;">&#40;</span>se hayan descargado o no<span style="color: #000000;">&#41;</span><br />        <span style="color: #00C800;">if</span> EMPTY<span style="color: #000000;">&#40;</span> oCli <span style="color: #000000;">&#41;</span>  ; <span style="color: #00C800;">break</span>  ; <span style="color: #00C800;">endif</span><br /><br />        <span style="color: #00C800;">if</span> ! oCli:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>  ; <span style="color: #00C800;">break</span>  ; <span style="color: #00C800;">endif</span><br />    catch<br />        <span style="color: #0000ff;">msginfo</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Error en conexion"</span><span style="color: #000000;">&#41;</span><br />    end<br /><span style="color: #00C800;">Return</span> oCli<br /> </div>[/code:1u3m4lmg]
hbssl.lib (SOLUCIONADO)
Gabriel, Muchas gracias Copio aquí tus instrucciones para que le sirva a otros: [quote:244zg1ud]Lo he hecho así : 1.- Impdef.exe ssleay32.def ssleay32.dll 2.- Edito ssleay32.def con block de notas y reemplazo funciones poniendo guión bajo delante del nombre. 3.- implib.exe ssleay32.lib ssleay32.def[/quote:244zg1ud]
hbssl.lib (SOLUCIONADO)
[code=fw:3741j74k]<div class="fw" id="{CB}" style="font-family: monospace;">procedure main<span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">local</span> cData, aData, cDataFix, cTmp<br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"Not define file DEF!"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> !file<span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"File not found!"</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">return</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;cData := MemoRead<span style="color: #000000;">&#40;</span>cFile<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">if</span> empty<span style="color: #000000;">&#40;</span>cData<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"File DEF empty!"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"Fixed DEF file..."</span><br />&nbsp; &nbsp; &nbsp; aTmp:=hb_Atokens<span style="color: #000000;">&#40;</span>cFile,<span style="color: #ff0000;">"."</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; aData:=hb_Atokens<span style="color: #000000;">&#40;</span>cData,hb_eol<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> len<span style="color: #000000;">&#40;</span>aData<span style="color: #000000;">&#41;</span>><span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; cDataFix:=<span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">for</span> x:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">to</span> len<span style="color: #000000;">&#40;</span>aData<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aData<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>:=alltrim<span style="color: #000000;">&#40;</span>aData<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">if</span> x><span style="color: #000000;">3</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">if</span> !empty<span style="color: #000000;">&#40;</span> aData<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;aData<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>:=<span style="color: #ff0000;">" &nbsp; &nbsp;_"</span>+aData<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cDataFix+=aData<span style="color: #000000;">&#91;</span>x<span style="color: #000000;">&#93;</span>+hb_eol<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #00C800;">next</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; hb_MemoWrit<span style="color: #000000;">&#40;</span>aTmp<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>+<span style="color: #ff0000;">"_fixed."</span>+aTmp<span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>,cDataFix<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; ?<span style="color: #ff0000;">"Finished!"</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br /><span style="color: #00C800;">return</span></div>[/code:3741j74k]
hbssl.lib hbcur.lib para xharbour?
Bom dia , Tenho um exemplo feito em Harbour a funcionar com estas lib´s , mas preciso em xharbour , alguém pode ajudar-me , posso enviar as fontes do teste que fiz em harbour? Cumprimentos João Alpande
hbssl.lib hbcur.lib para xharbour?
O exemplo em harbour é este: [code=fw:1ucbqvqy]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbclass.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbcurl.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbssl.ch"</span><br /><br /><br /><br /><span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> LOCAL_FILE &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"test1"</span><br /><span style="color: #00D7D7;">#define</span> UPLOAD_FILE_AS &nbsp;<span style="color: #ff0000;">"while-uploading.txt"</span><br /><span style="color: #00D7D7;">#define</span> REMOTE_URL &nbsp; &nbsp; &nbsp;<span style="color: #ff0000;">"ftp://localhost/"</span>+UPLOAD_FILE_AS<br /><span style="color: #00D7D7;">#define</span> RENAME_FILE_TO &nbsp;<span style="color: #ff0000;">"renamed-and-fine.txt"</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_SSL <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_WIN32 <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_ALL <span style="color: #000000;">&#40;</span>CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32<span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_NOTHING <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL<br /><br />#xcommand <span style="color: #0000ff;">TEXT</span> INTO <v> => <span style="color: #00D7D7;">#pragma</span> __text|<v>+=%s+HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<v>:=<span style="color: #ff0000;">""</span><br />REQUEST __HBEXTERN__HBSSL__<br /><br /><span style="color: #00C800;">FUNCTION</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> e, l<br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//SetMode(30,80)</span><br />&nbsp; &nbsp;e := EnvioDocumentoTransporte<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">user</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"123456789/1"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">senha</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"Password &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">datasistema</span> &nbsp; &nbsp; := hb_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">contribuinte</span> &nbsp; &nbsp;:= <span style="color: #ff0000;">"505422824"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">nome</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"Infor Pires Lda"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">morada</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"Sitio do Alem, 846-A"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">cidade</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"Almancil"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">codPostal</span> &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"8135-011"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">pais</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"PT"</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">docId</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"GT A1/52314"</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">// e:AtDocCodeId &nbsp; &nbsp;:= "999999999" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// se guia já comunicada, para reenviar como anulada ?</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">estado</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"N"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// estado : (N)ormal &nbsp; &nbsp;(T)erceiros &nbsp; &nbsp;(A)nulada</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">dataDoc</span> &nbsp; &nbsp; &nbsp; &nbsp; := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">tipoDoc</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"GT"</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #B900B9;">// GR/GT/GA/GC/GD</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">clienteNif</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"199530491"</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//e:FornecedorNif := "999999990" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;// ???? NÂO PERCEBI A QUE RAIO SE DESTINA</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">clienteNome</span> &nbsp; &nbsp; := <span style="color: #ff0000;">"Nelson Pires"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">clienteMorada</span> &nbsp; := <span style="color: #ff0000;">"Desconhecido"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">clienteCidade</span> &nbsp; := <span style="color: #ff0000;">"Faro"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">clienteCodPostal</span>:= <span style="color: #ff0000;">"8000-000"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">clientePais</span> &nbsp; &nbsp; := <span style="color: #ff0000;">"PT"</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">descargaMorada</span> &nbsp; &nbsp; := <span style="color: #ff0000;">"Ali"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">descargaCidade</span> &nbsp; &nbsp; := <span style="color: #ff0000;">"Desconhecido"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">descargaCodPostal</span> &nbsp;:= <span style="color: #ff0000;">"8000-000"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">descargaPais</span> &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"PT"</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">cargaMorada</span> &nbsp; &nbsp; := <span style="color: #ff0000;">"Aqui"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">cargaCidade</span> &nbsp; &nbsp; := <span style="color: #ff0000;">"Desconhecido"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">cargaCodPostal</span> &nbsp;:= <span style="color: #ff0000;">"8000-000"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">cargaPais</span> &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"PT"</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">fimCarga</span> &nbsp; &nbsp; &nbsp; &nbsp;:= <span style="color: #ff0000;">"2013-05-25T09:00:00"</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">inicioCarga</span> &nbsp; &nbsp; := <span style="color: #ff0000;">"2013-05-25T09:00:00"</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">matricula</span> &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"00-XX-00"</span><br /><br />&nbsp; &nbsp;l := LinhaDocumentoTransporte<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//l:adicionaReferencia("VD A/20001") &nbsp; &nbsp; &nbsp; &nbsp; // TEM QUE REFERIR UM JA EXISTENTE, SENÃO ERRO VALIDACAO</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//l:adicionaReferencia("VD A/20002")</span><br />&nbsp; &nbsp;l:<span style="color: #000000;">descricao</span> &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"Produto da linha 1"</span><br />&nbsp; &nbsp;l:<span style="color: #000000;">quantidade</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">100</span><br />&nbsp; &nbsp;l:<span style="color: #000000;">unidade</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"KG"</span><br />&nbsp; &nbsp;l:<span style="color: #000000;">precoUnitario</span> &nbsp; := <span style="color: #000000;">5.25</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">adicionaLinha</span><span style="color: #000000;">&#40;</span>l<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;l := LinhaDocumentoTransporte<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #B900B9;">//l:adicionaReferencia("VD A/20003")</span><br />&nbsp; &nbsp;l:<span style="color: #000000;">descricao</span> &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"Produto da linha 2"</span><br />&nbsp; &nbsp;l:<span style="color: #000000;">quantidade</span> &nbsp; &nbsp; &nbsp;:= <span style="color: #000000;">10</span><br />&nbsp; &nbsp;l:<span style="color: #000000;">unidade</span> &nbsp; &nbsp; &nbsp; &nbsp; := <span style="color: #ff0000;">"UN"</span><br />&nbsp; &nbsp;l:<span style="color: #000000;">precoUnitario</span> &nbsp; := <span style="color: #000000;">1.25</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">adicionaLinha</span><span style="color: #000000;">&#40;</span>l<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">certificado</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Certificado.pfx"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">chavePublica</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"chavePublicaAT.cer"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;e:<span style="color: #000000;">ldebug</span> := .T.<br /><br />&nbsp; &nbsp;cls<br />&nbsp; &nbsp;@<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"User Financas :"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">user</span><br />&nbsp; &nbsp;@<span style="color: #000000;">2</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Pass Financas :"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">senha</span><br />&nbsp; &nbsp;@<span style="color: #000000;">3</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Contribuinte &nbsp;:"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">contribuinte</span><br />&nbsp; &nbsp;@<span style="color: #000000;">4</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Nº Guia.......:"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">docid</span><br />&nbsp; &nbsp;@<span style="color: #000000;">5</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Incio Transp..:"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">inicioCarga</span><br />&nbsp; &nbsp;@<span style="color: #000000;">6</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Fim Transporte:"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">fimCarga</span><br />&nbsp; &nbsp;READ<br /><br />&nbsp; &nbsp;e:<span style="color: #000000;">enviaGuia</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> e:<span style="color: #000000;">resultado</span>==<span style="color: #000000;">0</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Doc. "</span>+ &nbsp; e:<span style="color: #000000;">resultadoDocNum</span> &nbsp; &nbsp; +<span style="color: #ff0000;">" Inserido com exito"</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Código AT : "</span>+ e:<span style="color: #000000;">resultadoDocIdAT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">else</span><br />&nbsp; &nbsp; &nbsp; ? <span style="color: #ff0000;">"Erro a submeter documento : "</span>, Str<span style="color: #000000;">&#40;</span>e:<span style="color: #000000;">resultado</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ? e:<span style="color: #000000;">resultadoTXT</span><br />&nbsp; &nbsp;<span style="color: #00C800;">endif</span><br />&nbsp; &nbsp;? e:<span style="color: #000000;">resultadoTXT</span><br />&nbsp; &nbsp;Inkey<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span><br /><br /><br /><span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> user &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; as STRING<br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> senha &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;as STRING<br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> datasistema<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> contribuinte &nbsp;as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> nome &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> morada &nbsp; &nbsp; &nbsp; &nbsp;as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> cidade &nbsp; &nbsp; &nbsp; &nbsp;as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> codPostal &nbsp; &nbsp; as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> pais &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;as string<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> atDocCodeId &nbsp; AS STRING <span style="color: #0000ff;">INIT</span> <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">var</span> docId &nbsp; &nbsp; &nbsp; &nbsp; as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> estado &nbsp; &nbsp; &nbsp; &nbsp;as CHAR<br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> dataDoc &nbsp; &nbsp; &nbsp; as DATE<br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> tipoDoc &nbsp; &nbsp; &nbsp; as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> clienteNif &nbsp; &nbsp; as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> clienteNome, clienteMorada, clienteCidade, clienteCodPostal, clientePais as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> descargaMorada, descargaCidade, descargaCodPostal, descargaPais as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> cargaMorada, cargaCidade, cargaCodPostal, cargaPais &nbsp; as string<br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> inicioCarga, fimCarga, matricula as string<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> certificado, chavepublica<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> resultado <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">-999</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> resultadoTxt <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> resultadoDocNum <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> resultadoDocIdAT <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> nOnce HIDDEN<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> linhas HIDDEN <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> xmlOut <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> lDebug <span style="color: #0000ff;">INIT</span> .F.<br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cUrl<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> aesKey<br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cryptedPassword <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">DATA</span> cryptedDate<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> adicionaLinha<span style="color: #000000;">&#40;</span>linhaDoc<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> enviaGuia<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> pwd<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> buildXML<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> gen_Crypt<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><span style="color: #B900B9;">// ------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">SELF</span><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> adicionaLinha<span style="color: #000000;">&#40;</span>linhadoc<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />&nbsp; &nbsp; &nbsp; AAdd<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">linhas</span>,linhaDoc<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> pwd<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><span style="color: #00C800;">METHOD</span> enviaGuia<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">buildxml</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> buildXML<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> n,i,nLinhas, oLine<br /><br />&nbsp; &nbsp; &nbsp; nLinhas := Len<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">linhas</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">gen_crypt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> := <span style="color: #ff0000;">'<?xml version="1.0" encoding="utf-8" standalone="no"?>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; <S:Header> '</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp;<wss:Security xmlns:wss="http://schemas.xmlsoap.org/ws/2002/12/secext">'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <wss:UsernameToken>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<wss:Username>'</span> + AllTrim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">user</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'</wss:Username>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<wss:Password>'</span> + ::<span style="color: #000000;">cryptedPassword</span> + <span style="color: #ff0000;">'</wss:Password>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<wss:Nonce>'</span> + ::<span style="color: #000000;">aeskey</span> &nbsp;+ <span style="color: #ff0000;">'</wss:Nonce>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<wss:Created>'</span> + ::<span style="color: #000000;">cryptedDate</span> +<span style="color: #ff0000;">'</wss:Created>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; </wss:UsernameToken>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp;</wss:Security>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; </S:Header>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; <S:Body>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp;<ns2:envioDocumentoTransporteRequestElem xmlns:ns2="https://servicos.portaldasfinancas.gov.pt/sgdtws/documentosTransporte/">'</span> + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <TaxRegistrationNumber>'</span> + ::<span style="color: #000000;">contribuinte</span> &nbsp;+ <span style="color: #ff0000;">'</TaxRegistrationNumber>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <CompanyName>'</span> + ::<span style="color: #000000;">nome</span> + <span style="color: #ff0000;">'</CompanyName>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <CompanyAddress>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<Addressdetail>'</span> + ::<span style="color: #000000;">Morada</span> + <span style="color: #ff0000;">'</Addressdetail>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<City>'</span> + ::<span style="color: #000000;">Cidade</span> + <span style="color: #ff0000;">'</City>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<PostalCode>'</span> + ::<span style="color: #000000;">codPostal</span> + <span style="color: #ff0000;">'</PostalCode>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<Country>'</span> + ::<span style="color: #000000;">pais</span>+ <span style="color: #ff0000;">'</Country>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; </CompanyAddress>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <DocumentNumber>'</span> + ::<span style="color: #000000;">docId</span> + <span style="color: #ff0000;">'</DocumentNumber>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">IF</span> ::<span style="color: #000000;">atDocCodeId</span> != <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <AtDocCodeId>'</span> + ::<span style="color: #000000;">atDocCodeId</span> + <span style="color: #ff0000;">'</AtDocCodeId>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <MovementStatus>'</span> + ::<span style="color: #000000;">estado</span> + <span style="color: #ff0000;">'</MovementStatus>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <MovementDate>'</span> + hb_DToC<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">dataDoc</span>,<span style="color: #ff0000;">"yyyy-mm-dd"</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'</MovementDate>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <MovementType>'</span> + ::<span style="color: #000000;">tipodoc</span> + <span style="color: #ff0000;">'</MovementType>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <CustomerTaxID>'</span> + ::<span style="color: #000000;">clienteNif</span> + <span style="color: #ff0000;">'</CustomerTaxID>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <CustomerAddress>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<Addressdetail>'</span> + ::<span style="color: #000000;">clienteMorada</span> + <span style="color: #ff0000;">'</Addressdetail>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<City>'</span> + ::<span style="color: #000000;">clienteCidade</span> + <span style="color: #ff0000;">'</City>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<PostalCode>'</span> + ::<span style="color: #000000;">clienteCodPostal</span> + <span style="color: #ff0000;">'</PostalCode>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<Country>'</span> + ::<span style="color: #000000;">clientePais</span> + <span style="color: #ff0000;">'</Country>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; </CustomerAddress>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <CustomerName>'</span> + ::<span style="color: #000000;">clienteNome</span> + <span style="color: #ff0000;">'</CustomerName>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <AddressTo>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<Addressdetail>'</span> + ::<span style="color: #000000;">descargaMorada</span> + <span style="color: #ff0000;">'</Addressdetail>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<City>'</span> + ::<span style="color: #000000;">descargaCidade</span> + <span style="color: #ff0000;">'</City>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<PostalCode>'</span> + ::<span style="color: #000000;">descargaCodPostal</span> + <span style="color: #ff0000;">'</PostalCode>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<Country>'</span> + ::<span style="color: #000000;">descargaPais</span> + <span style="color: #ff0000;">'</Country>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; </AddressTo>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <AddressFrom>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<Addressdetail>'</span> + ::<span style="color: #000000;">cargaMorada</span> + <span style="color: #ff0000;">'</Addressdetail>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<City>'</span> + ::<span style="color: #000000;">cargaCidade</span> + <span style="color: #ff0000;">'</City>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<PostalCode>'</span> + ::<span style="color: #000000;">cargaCodPostal</span> + <span style="color: #ff0000;">'</PostalCode>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<Country>'</span> + ::<span style="color: #000000;">cargaPais</span> + <span style="color: #ff0000;">'</Country>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; </AddressFrom>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <MovementEndTime>'</span> + ::<span style="color: #000000;">fimCarga</span> +<span style="color: #ff0000;">'</MovementEndTime>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <MovementStartTime>'</span> + ::<span style="color: #000000;">inicioCarga</span> + <span style="color: #ff0000;">'</MovementStartTime>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <VehicleID>'</span> + ::<span style="color: #000000;">matricula</span> + <span style="color: #ff0000;">'</VehicleID>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">FOR</span> n:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nLinhas<br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; <Line>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;oLine := ::<span style="color: #000000;">linhas</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">FOR</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span>oLine:<span style="color: #000000;">aRefs</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<OrderReferences>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <OriginatingON>'</span>+ oLine:<span style="color: #000000;">aRefs</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">'</OriginatingON>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;</OrderReferences>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<ProductDescription>'</span> + oLine:<span style="color: #000000;">descricao</span> + <span style="color: #ff0000;">'</ProductDescription>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<Quantity>'</span> + aStr<span style="color: #000000;">&#40;</span>oLine:<span style="color: #000000;">quantidade</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'</Quantity>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<UnitOfMeasure>'</span> + oLine:<span style="color: #000000;">unidade</span> + <span style="color: #ff0000;">'</UnitOfMeasure>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<UnitPrice>'</span> + aStr<span style="color: #000000;">&#40;</span>oLine:<span style="color: #000000;">precoUnitario</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'</UnitPrice>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp; &nbsp; </Line>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; &nbsp; &nbsp;</ns2:envioDocumentoTransporteRequestElem>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">' &nbsp; </S:Body>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;+ hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'</S:Envelope>'</span> &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">lDebug</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;MemoWrit<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"pacote.txt"</span>,::<span style="color: #000000;">xmlout</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; curl_global_init<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; cUrl := curl_easy_init<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_URL,<span style="color: #ff0000;">"https://servicos.portaldasfinancas.gov.pt:701/sgdtws/documentosTransporte"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_SSLCERT,<span style="color: #ff0000;">"./good.pem"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_HTTPHEADER, <span style="color: #ff0000;">"Content-Type:text/xml;charset=UTF-8"</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// todo : if(::lVerbose</span><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_VERBOSE,.T.<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>curl, HB_CURLOPT_SSL_VERIFYPEER, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>curl, HB_CURLOPT_SSL_VERIFYHOST, .F.<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_SSLCERTPASSWD,<span style="color: #ff0000;">"TESTEwebservice"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>cUrl, HB_CURLOPT_POSTFIELDS, ::<span style="color: #000000;">xmlOut</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>Curl, HB_CURLOPT_WRITEFUNCTION, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span>Curl, HB_CURLOPT_DL_BUFF_SETUP <span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; curl_easy_perform<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp; cXmlResp := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp; &nbsp; curl_easy_setopt<span style="color: #000000;">&#40;</span> curl, HB_CURLOPT_DL_BUFF_GET, @cXMLResp <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; Inkey<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// todo : if(::lDebug)</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lDebug</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;Memowrit<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"resp.txt"</span>,cXmlResp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">endif</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// Ver o resultado //</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #B900B9;">// todo : fazer o parser corretamente</span><br />&nbsp; &nbsp; &nbsp; oDocMaster := hxmldoc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"UTF-8"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oDocMaster:<span style="color: #000000;">readString</span><span style="color: #000000;">&#40;</span>cXmlResp<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; oNode := oDocMaster:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span> <span style="color: #B900B9;">// Response status //</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span>oNode<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;o:=oNode<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cTag := Upper<span style="color: #000000;">&#40;</span>o:<span style="color: #0000ff;">title</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;cVal := o:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">IF</span> cTag == <span style="color: #ff0000;">"RETURNCODE"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">resultado</span> := Val<span style="color: #000000;">&#40;</span>cVal<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;ELSEIF cTag == <span style="color: #ff0000;">"RETURNMESSAGE"</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; ::<span style="color: #000000;">resultadoTXT</span> := cVal<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;<span style="color: #00C800;">ENDIF</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">NEXT</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">resultado</span>==<span style="color: #000000;">0</span> <span style="color: #B900B9;">// OK, tirar docnum e atdocid</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">resultadoDocNum</span> &nbsp;:= oDocMaster:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp;::<span style="color: #000000;">resultadoDocIdAT</span> := oDocMaster:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />&nbsp; &nbsp; &nbsp; <span style="color: #00C800;">ENDIF</span><br /><br />&nbsp; &nbsp; &nbsp; curl_easy_cleanup<span style="color: #000000;">&#40;</span>curl<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp; curl_global_cleanup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> timefmt<span style="color: #000000;">&#40;</span>dt<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> t,c<br /><br /><br />&nbsp; &nbsp; dt := dt - <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>hb_UTCOffset<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>/<span style="color: #000000;">3600</span><span style="color: #000000;">&#41;</span> / <span style="color: #000000;">24</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp; &nbsp;c:= hb_TToS<span style="color: #000000;">&#40;</span>dt<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp; &nbsp;t := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"-"</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">5</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"-"</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">7</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"T"</span>+;<br />&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">9</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">":"</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">11</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">":"</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">13</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"."</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">15</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"Z"</span><br /><br />&nbsp; &nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> t<br /><span style="color: #B900B9;">// -------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> aStr<span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> &nbsp;AllTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>n,<span style="color: #000000;">10</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> gen_crypt<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> bio, ch, iv, ctx, publicKey, pub<br />&nbsp; &nbsp;<span style="color: #00C800;">LOCAL</span> result, <span style="color: #00C800;">final</span><br /><br />&nbsp; &nbsp;ssl_init<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;OpenSSL_add_all_ciphers<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00D7D7;">#pragma</span> __cstream|publicKey:=%s<br />-----BEGIN <span style="color: #00C800;">PUBLIC</span> KEY-----<br />MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoQi+XDM9OJ+Kr+Blaxn3<br />MFBE7UMYL7bfPGCxS0JDIbYlfQp65mYfzRcIhwysheO9nn7SlpF1b6TNNZglf3BT<br />SpFWP4xwB+RpjmHj1ClLg+hO1E/+olLfbIUplFqATpTWP7TGsgGBOhenQedzasq6<br />qzEoEAiOx4x2kD0NLPGUzMZaUr8HTGriYePWC4SJgwFSGQ9V5Yf4g2zYVh0Kyr2V<br />hJi9mJsGi3mBrgpxueabxEXnDdrDR1PiPhEPIU/w+63jZzcV/cvaKTSyvPtebPSy<br />+AdMtR5r2HXtDoZUKLHfcWZ2LP794wM5WU7ZoIuAQGGKZZyULqneGzCNdvmMuWu8<br />5wIDAQAB<br />-----END <span style="color: #00C800;">PUBLIC</span> KEY-----<br /><span style="color: #00D7D7;">#pragma</span> __endtext<br /><br />&nbsp; &nbsp;RAND_SEED<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"OITOLETR"</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ctx := hb_EVP_CIPHER_ctx_create<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;EVP_CIPHER_CTX_init<span style="color: #000000;">&#40;</span> ctx <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;pub:=PEM_read_bio_PUBKEY<span style="color: #000000;">&#40;</span> bio := BIO_new_mem_buf<span style="color: #000000;">&#40;</span> publicKey <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;EVP_SealInit<span style="color: #000000;">&#40;</span> ctx, <span style="color: #ff0000;">"AES-128-ECB"</span>, @ch, @iv, pub <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;::<span style="color: #000000;">aeskey</span>:=hb_base64Encode<span style="color: #000000;">&#40;</span>ch<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Alert(ch[1])</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">//Alert( Str(Len(ch[1]) ))</span><br /><br />&nbsp; &nbsp;::<span style="color: #000000;">dataSistema</span> := hb_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;result := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">final</span> &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;EVP_SealUpdate<span style="color: #000000;">&#40;</span> ctx, @result, timefmt<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">dataSistema</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">final</span> += result<br />&nbsp; &nbsp;EVP_SealFinal<span style="color: #000000;">&#40;</span> ctx, @result <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">final</span> += result<br />&nbsp; &nbsp;::<span style="color: #000000;">cryptedDate</span> := hb_base64Encode<span style="color: #000000;">&#40;</span><span style="color: #00C800;">final</span><span style="color: #000000;">&#41;</span><br /><br /><br />&nbsp; &nbsp;result := <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;<span style="color: #00C800;">final</span> &nbsp;:= <span style="color: #ff0000;">""</span><br />&nbsp; &nbsp;EVP_SealUpdate<span style="color: #000000;">&#40;</span> ctx, @result, AllTrim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">senha</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">final</span> += result<br />&nbsp; &nbsp;Len<span style="color: #000000;">&#40;</span>result<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;EVP_SealFinal<span style="color: #000000;">&#40;</span> ctx, @result <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">final</span> += result<br /><br />&nbsp; &nbsp;::<span style="color: #000000;">cryptedPassword</span> := hb_base64Encode<span style="color: #000000;">&#40;</span><span style="color: #00C800;">final</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #B900B9;">// clean UP</span><br />&nbsp; &nbsp;BIO_free<span style="color: #000000;">&#40;</span> bio <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;EVP_PKEY_free<span style="color: #000000;">&#40;</span> pub <span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;ctx := <span style="color: #00C800;">NIL</span><br />&nbsp; &nbsp;EVP_cleanup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><span style="color: #B900B9;">// --------------------------------------------------------------------</span><br /><span style="color: #00C800;">CLASS</span> LinhaDocumentoTransporte<br /><br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> descricao, quantidade, unidade, precoUnitario<br />&nbsp; &nbsp;<span style="color: #0000ff;">VAR</span> aRefs <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">METHOD</span> adicionaReferencia<span style="color: #000000;">&#40;</span>cDocRef<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> adicionaReferencia<span style="color: #000000;">&#40;</span>cDocRef<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> LinhaDocumentoTransporte<br />&nbsp; &nbsp;AAdd<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">aRefs</span>,cDocRef<span style="color: #000000;">&#41;</span><br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> LinhaDocumentoTransporte<br />&nbsp; &nbsp;<span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">SELF</span><br /><br /><br /><br />&nbsp;</div>[/code:1ucbqvqy]
hbssl.lib hbcurl.lib en xHarbour?
Buenos días, Tengo un ejemplo realizado en Harbour e trabajo con estos lib hbcur.lib hbssl.lib , pero necesito xHarbour, ¿alguien puede ayudarme? saludos João Alpande ejemplo en Harbour: [code=fw:sip9e4rq]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbclass.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbcurl.ch"</span><br /><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"hbssl.ch"</span><br /><br /><br /><br /><span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">TRUE</span> <span style="color: #000000;">1</span><br /><span style="color: #00D7D7;">#define</span> <span style="color: #00C800;">FALSE</span> <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> LOCAL_FILE      <span style="color: #ff0000;">"test1"</span><br /><span style="color: #00D7D7;">#define</span> UPLOAD_FILE_AS  <span style="color: #ff0000;">"while-uploading.txt"</span><br /><span style="color: #00D7D7;">#define</span> REMOTE_URL      <span style="color: #ff0000;">"ftp://localhost/"</span>+UPLOAD_FILE_AS<br /><span style="color: #00D7D7;">#define</span> RENAME_FILE_TO  <span style="color: #ff0000;">"renamed-and-fine.txt"</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_SSL <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<<span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_WIN32 <span style="color: #000000;">&#40;</span><span style="color: #000000;">1</span><<<span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_ALL <span style="color: #000000;">&#40;</span>CURL_GLOBAL_SSL|CURL_GLOBAL_WIN32<span style="color: #000000;">&#41;</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_NOTHING <span style="color: #000000;">0</span><br /><span style="color: #00D7D7;">#define</span> CURL_GLOBAL_DEFAULT CURL_GLOBAL_ALL<br /><br />#xcommand <span style="color: #0000ff;">TEXT</span> INTO <v> => <span style="color: #00D7D7;">#pragma</span> __text|<v>+=%s+HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>;<v>:=<span style="color: #ff0000;">""</span><br />REQUEST __HBEXTERN__HBSSL__<br /><br /><span style="color: #00C800;">FUNCTION</span> main<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> e, l<br /><br />   <span style="color: #B900B9;">//SetMode(30,80)</span><br />   e := EnvioDocumentoTransporte<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   e:<span style="color: #000000;">user</span>            := <span style="color: #ff0000;">"123456789/1"</span><br />   e:<span style="color: #000000;">senha</span>           := <span style="color: #ff0000;">"Password                          "</span><br />   e:<span style="color: #000000;">datasistema</span>     := hb_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   e:<span style="color: #000000;">contribuinte</span>    := <span style="color: #ff0000;">"505422824"</span><br />   e:<span style="color: #000000;">nome</span>            := <span style="color: #ff0000;">"Infor Pires Lda"</span><br />   e:<span style="color: #000000;">morada</span>          := <span style="color: #ff0000;">"Sitio do Alem, 846-A"</span><br />   e:<span style="color: #000000;">cidade</span>          := <span style="color: #ff0000;">"Almancil"</span><br />   e:<span style="color: #000000;">codPostal</span>       := <span style="color: #ff0000;">"8135-011"</span><br />   e:<span style="color: #000000;">pais</span>            := <span style="color: #ff0000;">"PT"</span><br /><br />   e:<span style="color: #000000;">docId</span>           := <span style="color: #ff0000;">"GT A1/52314"</span><br />   <span style="color: #B900B9;">// e:AtDocCodeId    := "999999999"          // se guia já comunicada, para reenviar como anulada ?</span><br />   e:<span style="color: #000000;">estado</span>          := <span style="color: #ff0000;">"N"</span>                     <span style="color: #B900B9;">// estado : (N)ormal    (T)erceiros    (A)nulada</span><br />   e:<span style="color: #000000;">dataDoc</span>         := Date<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   e:<span style="color: #000000;">tipoDoc</span>         := <span style="color: #ff0000;">"GT"</span>                    <span style="color: #B900B9;">// GR/GT/GA/GC/GD</span><br /><br />   e:<span style="color: #000000;">clienteNif</span>      := <span style="color: #ff0000;">"199530491"</span><br />   <span style="color: #B900B9;">//e:FornecedorNif := "999999990"            // ???? NÂO PERCEBI A QUE RAIO SE DESTINA</span><br />   e:<span style="color: #000000;">clienteNome</span>     := <span style="color: #ff0000;">"Nelson Pires"</span><br />   e:<span style="color: #000000;">clienteMorada</span>   := <span style="color: #ff0000;">"Desconhecido"</span><br />   e:<span style="color: #000000;">clienteCidade</span>   := <span style="color: #ff0000;">"Faro"</span><br />   e:<span style="color: #000000;">clienteCodPostal</span>:= <span style="color: #ff0000;">"8000-000"</span><br />   e:<span style="color: #000000;">clientePais</span>     := <span style="color: #ff0000;">"PT"</span><br /><br />   e:<span style="color: #000000;">descargaMorada</span>     := <span style="color: #ff0000;">"Ali"</span><br />   e:<span style="color: #000000;">descargaCidade</span>     := <span style="color: #ff0000;">"Desconhecido"</span><br />   e:<span style="color: #000000;">descargaCodPostal</span>  := <span style="color: #ff0000;">"8000-000"</span><br />   e:<span style="color: #000000;">descargaPais</span>       := <span style="color: #ff0000;">"PT"</span><br /><br />   e:<span style="color: #000000;">cargaMorada</span>     := <span style="color: #ff0000;">"Aqui"</span><br />   e:<span style="color: #000000;">cargaCidade</span>     := <span style="color: #ff0000;">"Desconhecido"</span><br />   e:<span style="color: #000000;">cargaCodPostal</span>  := <span style="color: #ff0000;">"8000-000"</span><br />   e:<span style="color: #000000;">cargaPais</span>       := <span style="color: #ff0000;">"PT"</span><br /><br />   e:<span style="color: #000000;">fimCarga</span>        := <span style="color: #ff0000;">"2013-05-25T09:00:00"</span><br />   e:<span style="color: #000000;">inicioCarga</span>     := <span style="color: #ff0000;">"2013-05-25T09:00:00"</span><br /><br />   e:<span style="color: #000000;">matricula</span>       := <span style="color: #ff0000;">"00-XX-00"</span><br /><br />   l := LinhaDocumentoTransporte<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">//l:adicionaReferencia("VD A/20001")         // TEM QUE REFERIR UM JA EXISTENTE, SENÃO ERRO VALIDACAO</span><br />   <span style="color: #B900B9;">//l:adicionaReferencia("VD A/20002")</span><br />   l:<span style="color: #000000;">descricao</span>       := <span style="color: #ff0000;">"Produto da linha 1"</span><br />   l:<span style="color: #000000;">quantidade</span>      := <span style="color: #000000;">100</span><br />   l:<span style="color: #000000;">unidade</span>         := <span style="color: #ff0000;">"KG"</span><br />   l:<span style="color: #000000;">precoUnitario</span>   := <span style="color: #000000;">5.25</span><br /><br />   e:<span style="color: #000000;">adicionaLinha</span><span style="color: #000000;">&#40;</span>l<span style="color: #000000;">&#41;</span><br /><br />   l := LinhaDocumentoTransporte<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #B900B9;">//l:adicionaReferencia("VD A/20003")</span><br />   l:<span style="color: #000000;">descricao</span>       := <span style="color: #ff0000;">"Produto da linha 2"</span><br />   l:<span style="color: #000000;">quantidade</span>      := <span style="color: #000000;">10</span><br />   l:<span style="color: #000000;">unidade</span>         := <span style="color: #ff0000;">"UN"</span><br />   l:<span style="color: #000000;">precoUnitario</span>   := <span style="color: #000000;">1.25</span><br /><br />   e:<span style="color: #000000;">adicionaLinha</span><span style="color: #000000;">&#40;</span>l<span style="color: #000000;">&#41;</span><br /><br />   e:<span style="color: #000000;">certificado</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"Certificado.pfx"</span><span style="color: #000000;">&#41;</span><br />   e:<span style="color: #000000;">chavePublica</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"chavePublicaAT.cer"</span><span style="color: #000000;">&#41;</span><br />   e:<span style="color: #000000;">ldebug</span> := .T.<br /><br />   cls<br />   @<span style="color: #000000;">1</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"User Financas :"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">user</span><br />   @<span style="color: #000000;">2</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">SAY</span> <span style="color: #ff0000;">"Pass Financas :"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">senha</span><br />   @<span style="color: #000000;">3</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Contribuinte  :"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">contribuinte</span><br />   @<span style="color: #000000;">4</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Nº Guia.......:"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">docid</span><br />   @<span style="color: #000000;">5</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Incio Transp..:"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">inicioCarga</span><br />   @<span style="color: #000000;">6</span>,<span style="color: #000000;">1</span> <span style="color: #0000ff;">say</span> <span style="color: #ff0000;">"Fim Transporte:"</span> <span style="color: #0000ff;">get</span> e:<span style="color: #000000;">fimCarga</span><br />   READ<br /><br />   e:<span style="color: #000000;">enviaGuia</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">IF</span> e:<span style="color: #000000;">resultado</span>==<span style="color: #000000;">0</span><br />      ? <span style="color: #ff0000;">"Doc. "</span>+   e:<span style="color: #000000;">resultadoDocNum</span>     +<span style="color: #ff0000;">" Inserido com exito"</span><br />      ? <span style="color: #ff0000;">"Código AT : "</span>+ e:<span style="color: #000000;">resultadoDocIdAT</span><br />   <span style="color: #00C800;">else</span><br />      ? <span style="color: #ff0000;">"Erro a submeter documento : "</span>, Str<span style="color: #000000;">&#40;</span>e:<span style="color: #000000;">resultado</span><span style="color: #000000;">&#41;</span><br />      ? e:<span style="color: #000000;">resultadoTXT</span><br />   <span style="color: #00C800;">endif</span><br />   ? e:<span style="color: #000000;">resultadoTXT</span><br />   Inkey<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">return</span><br /><br /><br /><span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />   <span style="color: #0000ff;">var</span> user           as STRING<br />   <span style="color: #0000ff;">var</span> senha          as STRING<br />   <span style="color: #0000ff;">var</span> datasistema<br /><br />   <span style="color: #0000ff;">var</span> contribuinte  as string<br />   <span style="color: #0000ff;">var</span> nome          as string<br />   <span style="color: #0000ff;">var</span> morada        as string<br />   <span style="color: #0000ff;">var</span> cidade        as string<br />   <span style="color: #0000ff;">var</span> codPostal     as string<br />   <span style="color: #0000ff;">var</span> pais          as string<br /><br />   <span style="color: #0000ff;">VAR</span> atDocCodeId   AS STRING <span style="color: #0000ff;">INIT</span> <span style="color: #00C800;">NIL</span><br />   <span style="color: #0000ff;">var</span> docId         as string<br />   <span style="color: #0000ff;">VAR</span> estado        as CHAR<br />   <span style="color: #0000ff;">VAR</span> dataDoc       as DATE<br />   <span style="color: #0000ff;">VAR</span> tipoDoc       as string<br />   <span style="color: #0000ff;">VAR</span> clienteNif     as string<br />   <span style="color: #0000ff;">VAR</span> clienteNome, clienteMorada, clienteCidade, clienteCodPostal, clientePais as string<br />   <span style="color: #0000ff;">VAR</span> descargaMorada, descargaCidade, descargaCodPostal, descargaPais as string<br />   <span style="color: #0000ff;">VAR</span> cargaMorada, cargaCidade, cargaCodPostal, cargaPais   as string<br />   <span style="color: #0000ff;">VAR</span> inicioCarga, fimCarga, matricula as string<br /><br />   <span style="color: #0000ff;">VAR</span> certificado, chavepublica<br /><br />   <span style="color: #0000ff;">VAR</span> resultado <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">-999</span><br />   <span style="color: #0000ff;">VAR</span> resultadoTxt <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br />   <span style="color: #0000ff;">VAR</span> resultadoDocNum <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br />   <span style="color: #0000ff;">VAR</span> resultadoDocIdAT <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br /><br />   <span style="color: #00C800;">DATA</span> nOnce HIDDEN<br />   <span style="color: #00C800;">DATA</span> linhas HIDDEN <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">DATA</span> xmlOut <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">DATA</span> lDebug <span style="color: #0000ff;">INIT</span> .F.<br /><br /><br />   <span style="color: #00C800;">DATA</span> cUrl<br />   <span style="color: #00C800;">DATA</span> aesKey<br />   <span style="color: #00C800;">DATA</span> cryptedPassword <span style="color: #0000ff;">INIT</span> <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">DATA</span> cryptedDate<br /><br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> adicionaLinha<span style="color: #000000;">&#40;</span>linhaDoc<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> enviaGuia<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> pwd<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> buildXML<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> gen_Crypt<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><span style="color: #00C800;">ENDCLASS</span><br /><span style="color: #B900B9;">// ------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br /><br />   <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">SELF</span><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> adicionaLinha<span style="color: #000000;">&#40;</span>linhadoc<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />      AAdd<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">linhas</span>,linhaDoc<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">RETURN</span><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> pwd<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br /><br />   <span style="color: #00C800;">RETURN</span><br /><span style="color: #00C800;">METHOD</span> enviaGuia<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />      ::<span style="color: #000000;">buildxml</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">RETURN</span><br /><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> buildXML<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />   <span style="color: #00C800;">LOCAL</span> n,i,nLinhas, oLine<br /><br />      nLinhas := Len<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">linhas</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">gen_crypt</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      ::<span style="color: #000000;">xmlOut</span> := <span style="color: #ff0000;">'<?xml version="1.0" encoding="utf-8" standalone="no"?>'</span>                                        + HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/">'</span>                              + HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'   <S:Header> '</span>                                                                                + HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'      <wss:Security xmlns:wss="http://schemas.xmlsoap.org/ws/2002/12/secext">'</span>                 + HB_OSNEWLINE<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <wss:UsernameToken>'</span>                                                                  + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <wss:Username>'</span> + AllTrim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">user</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'</wss:Username>'</span>                              + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <wss:Password>'</span> + ::<span style="color: #000000;">cryptedPassword</span> + <span style="color: #ff0000;">'</wss:Password>'</span>                            + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <wss:Nonce>'</span> + ::<span style="color: #000000;">aeskey</span>  + <span style="color: #ff0000;">'</wss:Nonce>'</span>                                           + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <wss:Created>'</span> + ::<span style="color: #000000;">cryptedDate</span> +<span style="color: #ff0000;">'</wss:Created>'</span>                                   + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         </wss:UsernameToken>'</span>                                                                 + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'      </wss:Security>'</span>                                                                         + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'   </S:Header>'</span>                                                                                + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'   <S:Body>'</span>                                                                                   + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'      <ns2:envioDocumentoTransporteRequestElem xmlns:ns2="https://servicos.portaldasfinancas.gov.pt/sgdtws/documentosTransporte/">'</span> + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <TaxRegistrationNumber>'</span> + ::<span style="color: #000000;">contribuinte</span>  + <span style="color: #ff0000;">'</TaxRegistrationNumber>'</span>               + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <CompanyName>'</span> + ::<span style="color: #000000;">nome</span> + <span style="color: #ff0000;">'</CompanyName>'</span>                                            + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <CompanyAddress>'</span>                                                                     + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <Addressdetail>'</span> + ::<span style="color: #000000;">Morada</span> + <span style="color: #ff0000;">'</Addressdetail>'</span>                                   + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <City>'</span> + ::<span style="color: #000000;">Cidade</span> + <span style="color: #ff0000;">'</City>'</span>                                                     + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <PostalCode>'</span> + ::<span style="color: #000000;">codPostal</span> + <span style="color: #ff0000;">'</PostalCode>'</span>                                      + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <Country>'</span> + ::<span style="color: #000000;">pais</span>+ <span style="color: #ff0000;">'</Country>'</span>                                                  + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         </CompanyAddress>'</span>                                                                    + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <DocumentNumber>'</span> + ::<span style="color: #000000;">docId</span> + <span style="color: #ff0000;">'</DocumentNumber>'</span>                                     + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">atDocCodeId</span> != <span style="color: #00C800;">NIL</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <AtDocCodeId>'</span> + ::<span style="color: #000000;">atDocCodeId</span> + <span style="color: #ff0000;">'</AtDocCodeId>'</span>                                     + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">ENDIF</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <MovementStatus>'</span> + ::<span style="color: #000000;">estado</span> + <span style="color: #ff0000;">'</MovementStatus>'</span>                                    + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <MovementDate>'</span> + hb_DToC<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">dataDoc</span>,<span style="color: #ff0000;">"yyyy-mm-dd"</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'</MovementDate>'</span>                 + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <MovementType>'</span> + ::<span style="color: #000000;">tipodoc</span> + <span style="color: #ff0000;">'</MovementType>'</span>                                       + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <CustomerTaxID>'</span> + ::<span style="color: #000000;">clienteNif</span> + <span style="color: #ff0000;">'</CustomerTaxID>'</span>                                  + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <CustomerAddress>'</span>                                                                    + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <Addressdetail>'</span> + ::<span style="color: #000000;">clienteMorada</span> + <span style="color: #ff0000;">'</Addressdetail>'</span>                            + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <City>'</span> + ::<span style="color: #000000;">clienteCidade</span> + <span style="color: #ff0000;">'</City>'</span>                                              + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <PostalCode>'</span> + ::<span style="color: #000000;">clienteCodPostal</span> + <span style="color: #ff0000;">'</PostalCode>'</span>                               + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <Country>'</span> + ::<span style="color: #000000;">clientePais</span> + <span style="color: #ff0000;">'</Country>'</span>                                          + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         </CustomerAddress>'</span>                                                                   + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <CustomerName>'</span> + ::<span style="color: #000000;">clienteNome</span> + <span style="color: #ff0000;">'</CustomerName>'</span>                                   + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <AddressTo>'</span>                                                                          + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <Addressdetail>'</span> + ::<span style="color: #000000;">descargaMorada</span> + <span style="color: #ff0000;">'</Addressdetail>'</span>                           + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <City>'</span> + ::<span style="color: #000000;">descargaCidade</span> + <span style="color: #ff0000;">'</City>'</span>                                             + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <PostalCode>'</span> + ::<span style="color: #000000;">descargaCodPostal</span> + <span style="color: #ff0000;">'</PostalCode>'</span>                              + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <Country>'</span> + ::<span style="color: #000000;">descargaPais</span> + <span style="color: #ff0000;">'</Country>'</span>                                         + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         </AddressTo>'</span>                                                                         + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <AddressFrom>'</span>                                                                        + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <Addressdetail>'</span> + ::<span style="color: #000000;">cargaMorada</span> + <span style="color: #ff0000;">'</Addressdetail>'</span>                              + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <City>'</span> + ::<span style="color: #000000;">cargaCidade</span> + <span style="color: #ff0000;">'</City>'</span>                                                + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <PostalCode>'</span> + ::<span style="color: #000000;">cargaCodPostal</span> + <span style="color: #ff0000;">'</PostalCode>'</span>                                 + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <Country>'</span> + ::<span style="color: #000000;">cargaPais</span> + <span style="color: #ff0000;">'</Country>'</span>                                            + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         </AddressFrom>'</span>                                                                       + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <MovementEndTime>'</span> + ::<span style="color: #000000;">fimCarga</span> +<span style="color: #ff0000;">'</MovementEndTime>'</span>                                 + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <MovementStartTime>'</span> + ::<span style="color: #000000;">inicioCarga</span> + <span style="color: #ff0000;">'</MovementStartTime>'</span>                         + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <VehicleID>'</span> + ::<span style="color: #000000;">matricula</span> + <span style="color: #ff0000;">'</VehicleID>'</span>                                           + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">FOR</span> n:=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> nLinhas<br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         <Line>'</span>                                                                               + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   oLine := ::<span style="color: #000000;">linhas</span><span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span><br />   <span style="color: #00C800;">FOR</span> i=<span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span>oLine:<span style="color: #000000;">aRefs</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <OrderReferences>'</span>                                                                 + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'               <OriginatingON>'</span>+ oLine:<span style="color: #000000;">aRefs</span><span style="color: #000000;">&#91;</span>i<span style="color: #000000;">&#93;</span> + <span style="color: #ff0000;">'</OriginatingON>'</span>                           + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            </OrderReferences>'</span>                                                                + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">NEXT</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <ProductDescription>'</span> + oLine:<span style="color: #000000;">descricao</span> + <span style="color: #ff0000;">'</ProductDescription>'</span>                  + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <Quantity>'</span> + aStr<span style="color: #000000;">&#40;</span>oLine:<span style="color: #000000;">quantidade</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'</Quantity>'</span>                               + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <UnitOfMeasure>'</span> + oLine:<span style="color: #000000;">unidade</span> + <span style="color: #ff0000;">'</UnitOfMeasure>'</span>                              + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'            <UnitPrice>'</span> + aStr<span style="color: #000000;">&#40;</span>oLine:<span style="color: #000000;">precoUnitario</span><span style="color: #000000;">&#41;</span> + <span style="color: #ff0000;">'</UnitPrice>'</span>                          + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'         </Line>'</span>                                                                              + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />  <span style="color: #00C800;">NEXT</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'      </ns2:envioDocumentoTransporteRequestElem>'</span>                                              + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'   </S:Body>'</span>                                                                                  + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      ::<span style="color: #000000;">xmlOut</span> += <span style="color: #ff0000;">'</S:Envelope>'</span>                                                                                 + hb_osNewLine<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />      <span style="color: #00C800;">IF</span> <span style="color: #000000;">&#40;</span>::<span style="color: #000000;">lDebug</span><span style="color: #000000;">&#41;</span><br />         MemoWrit<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"pacote.txt"</span>,::<span style="color: #000000;">xmlout</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />      curl_global_init<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />      cUrl := curl_easy_init<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_URL,<span style="color: #ff0000;">"https://servicos.portaldasfinancas.gov.pt:701/sgdtws/documentosTransporte"</span><span style="color: #000000;">&#41;</span><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_SSLCERT,<span style="color: #ff0000;">"./good.pem"</span><span style="color: #000000;">&#41;</span><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_HTTPHEADER, <span style="color: #ff0000;">"Content-Type:text/xml;charset=UTF-8"</span><span style="color: #000000;">&#41;</span><br /><br />      <span style="color: #B900B9;">// todo : if(::lVerbose</span><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_VERBOSE,.T.<span style="color: #000000;">&#41;</span><br /><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>curl, HB_CURLOPT_SSL_VERIFYPEER, .F.<span style="color: #000000;">&#41;</span><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>curl, HB_CURLOPT_SSL_VERIFYHOST, .F.<span style="color: #000000;">&#41;</span><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>curl,HB_CURLOPT_SSLCERTPASSWD,<span style="color: #ff0000;">"TESTEwebservice"</span><span style="color: #000000;">&#41;</span><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>cUrl, HB_CURLOPT_POSTFIELDS, ::<span style="color: #000000;">xmlOut</span><span style="color: #000000;">&#41;</span><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>Curl, HB_CURLOPT_WRITEFUNCTION, <span style="color: #000000;">1</span><span style="color: #000000;">&#41;</span><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span>Curl, HB_CURLOPT_DL_BUFF_SETUP <span style="color: #000000;">&#41;</span><br /><br />      curl_easy_perform<span style="color: #000000;">&#40;</span>cUrl<span style="color: #000000;">&#41;</span><br /><br />      cXmlResp := <span style="color: #ff0000;">""</span><br />      curl_easy_setopt<span style="color: #000000;">&#40;</span> curl, HB_CURLOPT_DL_BUFF_GET, @cXMLResp <span style="color: #000000;">&#41;</span><br />      Inkey<span style="color: #000000;">&#40;</span><span style="color: #000000;">0</span><span style="color: #000000;">&#41;</span><br />      <span style="color: #B900B9;">// todo : if(::lDebug)</span><br />      <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">lDebug</span><br />         Memowrit<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"resp.txt"</span>,cXmlResp<span style="color: #000000;">&#41;</span><br />      <span style="color: #00C800;">endif</span><br />      <span style="color: #B900B9;">// Ver o resultado //</span><br />      <span style="color: #B900B9;">// todo : fazer o parser corretamente</span><br />      oDocMaster := hxmldoc<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"UTF-8"</span><span style="color: #000000;">&#41;</span><br />      oDocMaster:<span style="color: #000000;">readString</span><span style="color: #000000;">&#40;</span>cXmlResp<span style="color: #000000;">&#41;</span><br />      oNode := oDocMaster:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span> <span style="color: #B900B9;">// Response status //</span><br />      <span style="color: #00C800;">FOR</span> n := <span style="color: #000000;">1</span> <span style="color: #0000ff;">TO</span> Len<span style="color: #000000;">&#40;</span>oNode<span style="color: #000000;">&#41;</span><br />         o:=oNode<span style="color: #000000;">&#91;</span>n<span style="color: #000000;">&#93;</span><br />         cTag := Upper<span style="color: #000000;">&#40;</span>o:<span style="color: #0000ff;">title</span><span style="color: #000000;">&#41;</span><br />         cVal := o:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />         <span style="color: #00C800;">IF</span> cTag == <span style="color: #ff0000;">"RETURNCODE"</span><br />            ::<span style="color: #000000;">resultado</span> := Val<span style="color: #000000;">&#40;</span>cVal<span style="color: #000000;">&#41;</span><br />         ELSEIF cTag == <span style="color: #ff0000;">"RETURNMESSAGE"</span><br />            ::<span style="color: #000000;">resultadoTXT</span> := cVal<br />         <span style="color: #00C800;">ENDIF</span><br />      <span style="color: #00C800;">NEXT</span><br />      <span style="color: #00C800;">IF</span> ::<span style="color: #000000;">resultado</span>==<span style="color: #000000;">0</span> <span style="color: #B900B9;">// OK, tirar docnum e atdocid</span><br />         ::<span style="color: #000000;">resultadoDocNum</span>  := oDocMaster:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />         ::<span style="color: #000000;">resultadoDocIdAT</span> := oDocMaster:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">2</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">3</span><span style="color: #000000;">&#93;</span>:<span style="color: #000000;">aItems</span><span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><br />      <span style="color: #00C800;">ENDIF</span><br /><br />      curl_easy_cleanup<span style="color: #000000;">&#40;</span>curl<span style="color: #000000;">&#41;</span><br />      curl_global_cleanup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br /><br />   <span style="color: #00C800;">RETURN</span><br /><span style="color: #B900B9;">// ---------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> timefmt<span style="color: #000000;">&#40;</span>dt<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">LOCAL</span> t,c<br /><br /><br />    dt := dt - <span style="color: #000000;">&#40;</span><span style="color: #000000;">&#40;</span>hb_UTCOffset<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>/<span style="color: #000000;">3600</span><span style="color: #000000;">&#41;</span> / <span style="color: #000000;">24</span><span style="color: #000000;">&#41;</span><br /><br />     c:= hb_TToS<span style="color: #000000;">&#40;</span>dt<span style="color: #000000;">&#41;</span><br />     t := <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">1</span>,<span style="color: #000000;">4</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"-"</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">5</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"-"</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">7</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"T"</span>+;<br />          <span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">9</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">":"</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">11</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">":"</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">13</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"."</span>+<span style="color: #0000ff;">SubStr</span><span style="color: #000000;">&#40;</span>c,<span style="color: #000000;">15</span><span style="color: #000000;">&#41;</span>+<span style="color: #ff0000;">"Z"</span><br /><br />     <span style="color: #00C800;">RETURN</span> t<br /><span style="color: #B900B9;">// -------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> aStr<span style="color: #000000;">&#40;</span>n<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">RETURN</span>  AllTrim<span style="color: #000000;">&#40;</span>Str<span style="color: #000000;">&#40;</span>n,<span style="color: #000000;">10</span>,<span style="color: #000000;">2</span><span style="color: #000000;">&#41;</span><span style="color: #000000;">&#41;</span><br /><span style="color: #B900B9;">//----------------------------------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> gen_crypt<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> EnvioDocumentoTransporte<br />   <span style="color: #00C800;">LOCAL</span> bio, ch, iv, ctx, publicKey, pub<br />   <span style="color: #00C800;">LOCAL</span> result, <span style="color: #00C800;">final</span><br /><br />   ssl_init<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   OpenSSL_add_all_ciphers<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00D7D7;">#pragma</span> __cstream|publicKey:=%s<br />-----BEGIN <span style="color: #00C800;">PUBLIC</span> KEY-----<br />MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAoQi+XDM9OJ+Kr+Blaxn3<br />MFBE7UMYL7bfPGCxS0JDIbYlfQp65mYfzRcIhwysheO9nn7SlpF1b6TNNZglf3BT<br />SpFWP4xwB+RpjmHj1ClLg+hO1E/+olLfbIUplFqATpTWP7TGsgGBOhenQedzasq6<br />qzEoEAiOx4x2kD0NLPGUzMZaUr8HTGriYePWC4SJgwFSGQ9V5Yf4g2zYVh0Kyr2V<br />hJi9mJsGi3mBrgpxueabxEXnDdrDR1PiPhEPIU/w+63jZzcV/cvaKTSyvPtebPSy<br />+AdMtR5r2HXtDoZUKLHfcWZ2LP794wM5WU7ZoIuAQGGKZZyULqneGzCNdvmMuWu8<br />5wIDAQAB<br />-----END <span style="color: #00C800;">PUBLIC</span> KEY-----<br /><span style="color: #00D7D7;">#pragma</span> __endtext<br /><br />   RAND_SEED<span style="color: #000000;">&#40;</span><span style="color: #ff0000;">"OITOLETR"</span><span style="color: #000000;">&#41;</span><br />   ctx := hb_EVP_CIPHER_ctx_create<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   EVP_CIPHER_CTX_init<span style="color: #000000;">&#40;</span> ctx <span style="color: #000000;">&#41;</span><br />   pub:=PEM_read_bio_PUBKEY<span style="color: #000000;">&#40;</span> bio := BIO_new_mem_buf<span style="color: #000000;">&#40;</span> publicKey <span style="color: #000000;">&#41;</span>, <span style="color: #ff0000;">""</span> <span style="color: #000000;">&#41;</span><br />   EVP_SealInit<span style="color: #000000;">&#40;</span> ctx, <span style="color: #ff0000;">"AES-128-ECB"</span>, @ch, @iv, pub <span style="color: #000000;">&#41;</span><br />   ::<span style="color: #000000;">aeskey</span>:=hb_base64Encode<span style="color: #000000;">&#40;</span>ch<span style="color: #000000;">&#91;</span><span style="color: #000000;">1</span><span style="color: #000000;">&#93;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">//Alert(ch[1])</span><br /><br />   <span style="color: #B900B9;">//Alert( Str(Len(ch[1]) ))</span><br /><br />   ::<span style="color: #000000;">dataSistema</span> := hb_DateTime<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   result := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">final</span>  := <span style="color: #ff0000;">""</span><br />   EVP_SealUpdate<span style="color: #000000;">&#40;</span> ctx, @result, timefmt<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">dataSistema</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">final</span> += result<br />   EVP_SealFinal<span style="color: #000000;">&#40;</span> ctx, @result <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">final</span> += result<br />   ::<span style="color: #000000;">cryptedDate</span> := hb_base64Encode<span style="color: #000000;">&#40;</span><span style="color: #00C800;">final</span><span style="color: #000000;">&#41;</span><br /><br /><br />   result := <span style="color: #ff0000;">""</span><br />   <span style="color: #00C800;">final</span>  := <span style="color: #ff0000;">""</span><br />   EVP_SealUpdate<span style="color: #000000;">&#40;</span> ctx, @result, AllTrim<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">senha</span><span style="color: #000000;">&#41;</span> <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">final</span> += result<br />   Len<span style="color: #000000;">&#40;</span>result<span style="color: #000000;">&#41;</span><br />   EVP_SealFinal<span style="color: #000000;">&#40;</span> ctx, @result <span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">final</span> += result<br /><br />   ::<span style="color: #000000;">cryptedPassword</span> := hb_base64Encode<span style="color: #000000;">&#40;</span><span style="color: #00C800;">final</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #B900B9;">// clean UP</span><br />   BIO_free<span style="color: #000000;">&#40;</span> bio <span style="color: #000000;">&#41;</span><br />   EVP_PKEY_free<span style="color: #000000;">&#40;</span> pub <span style="color: #000000;">&#41;</span><br />   ctx := <span style="color: #00C800;">NIL</span><br />   EVP_cleanup<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />   <span style="color: #00C800;">RETURN</span><br /><span style="color: #B900B9;">// --------------------------------------------------------------------</span><br /><span style="color: #00C800;">CLASS</span> LinhaDocumentoTransporte<br /><br />   <span style="color: #0000ff;">VAR</span> descricao, quantidade, unidade, precoUnitario<br />   <span style="color: #0000ff;">VAR</span> aRefs <span style="color: #0000ff;">INIT</span> <span style="color: #000000;">&#123;</span><span style="color: #000000;">&#125;</span><br />   <span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">METHOD</span> adicionaReferencia<span style="color: #000000;">&#40;</span>cDocRef<span style="color: #000000;">&#41;</span><br /><span style="color: #00C800;">ENDCLASS</span><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> adicionaReferencia<span style="color: #000000;">&#40;</span>cDocRef<span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> LinhaDocumentoTransporte<br />   AAdd<span style="color: #000000;">&#40;</span>::<span style="color: #000000;">aRefs</span>,cDocRef<span style="color: #000000;">&#41;</span><br />   <span style="color: #00C800;">RETURN</span><br /><span style="color: #B900B9;">// -------------------------------------------------------------------</span><br /><span style="color: #00C800;">METHOD</span> <span style="color: #00C800;">new</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span> <span style="color: #00C800;">CLASS</span> LinhaDocumentoTransporte<br />   <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">SELF</span><br /><br /><br /><br /> </div>[/code:sip9e4rq]
hbssl.lib hbssls.lib libeay32.lib ssleay32 & hbtipssl.lib
Do you have these libs for Harbour and bcc7 32 bits ?
hbssl.lib hbssls.lib libeay32.lib ssleay32 & hbtipssl.lib
Alguien tiene estas librerías para Harbour y bcc7 32 bits ?
hbssl.lib hbssls.lib libeay32.lib ssleay32 & hbtipssl.lib
I have them for harbor with MSVC, but not Borland.
hbssl.lib hbssls.lib libeay32.lib ssleay32 & hbtipssl.lib
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=33272&p=196088#p196088">viewtopic.php?f=6&t=33272&p=196088#p196088</a><!-- l -->
hbssl.lib hbssls.lib libeay32.lib ssleay32 & hbtipssl.lib
<!-- l --><a class="postlink-local" href="http://forums.fivetechsupport.com/viewtopic.php?f=6&t=33272&p=196088#p196088">viewtopic.php?f=6&t=33272&p=196088#p196088</a><!-- l -->
hbtipssl.lib
Dear friends, I need hbtipssl.lib. It is not in the official Harbour distribution. I already searched this forum but I haven't found a clear answer. EMG
hbtipssl.lib
Enrico, For which compiler?
hbtipssl.lib
Right, sorry: BCC 7.40 32 bit. EMG
hbtipssl.lib
Dear Enrico, Here it is explained how to build it: [url:287poitg]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?p=245715&sid=3b2145523f315598c7ef11fc611d3ac5&sid=3b2145523f315598c7ef11fc611d3ac5#p245715[/url:287poitg] hbtipssl.hbp [code=fw:287poitg]<div class="fw" id="{CB}" style="font-family: monospace;">-env:<span style="color: #000000;">HB_TIP_OPENSSL</span>=yes<br />hbtip.hbp</div>[/code:287poitg] c:\harbour\bin\win\bcc\hbmk2 hbtipssl.hbp -comp=bcc Here you have it already built: [url:287poitg]https&#58;//github&#46;com/FiveTechSoft/Harbour_builder/tree/master/win32_hbtipssl[/url:287poitg]
hbtipssl.lib
Thank you, but I don't have Harbour source code. <!-- s:-( --><img src="{SMILIES_PATH}/icon_sad.gif" alt=":-(" title="Sad" /><!-- s:-( --> EMG
hbtipssl.lib
Previous post updated to provide url to download it <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) --> You may get some unresolved externals. Please tell them
hbtipssl.lib
Thank you. No errors building the EXE but it can't read an SSL mailbox (the same code works fine using xHarbour). Here it is a sample: [code=fw:37pwwgmd]<div class="fw" id="{CB}" style="font-family: monospace;"><span style="color: #00D7D7;">#include</span> <span style="color: #ff0000;">"Fivewin.ch"</span><br /><br /><br /><span style="color: #00C800;">FUNCTION</span> MAIN<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    GETMAIL<span style="color: #000000;">&#40;</span> cServer, cUser, cPassword <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">RETURN</span> <span style="color: #00C800;">NIL</span><br /><br /><br /><span style="color: #00C800;">STATIC</span> <span style="color: #00C800;">FUNCTION</span> GETMAIL<span style="color: #000000;">&#40;</span> cServer, cUser, cPassword <span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">LOCAL</span> lOk := .F.<br /><br />    <span style="color: #00C800;">LOCAL</span> oCli<br /><br />    oCli = TIPClientPOP<span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span>:<span style="color: #00C800;">New</span><span style="color: #000000;">&#40;</span> <span style="color: #ff0000;">"pop://"</span> + cUser + <span style="color: #ff0000;">":"</span> + cPassword + <span style="color: #ff0000;">"@"</span> + cServer <span style="color: #000000;">&#41;</span><br /><br />    oCli:<span style="color: #000000;">oUrl</span>:<span style="color: #000000;">cUserid</span> = cUser<br /><br />    oCli:<span style="color: #000000;">nDefaultPort</span> = <span style="color: #000000;">995</span><br /><br />    oCli:<span style="color: #000000;">lSSL</span> = .T.<br /><br />    ? oCli:<span style="color: #000000;">Open</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    ? oCli:<span style="color: #000000;">CountMail</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    oCli:<span style="color: #000000;">Close</span><span style="color: #000000;">&#40;</span><span style="color: #000000;">&#41;</span><br /><br />    <span style="color: #00C800;">RETURN</span> lOk</div>[/code:37pwwgmd] EMG
hbtipssl.lib
What error do you get ? How do you know that it is failing ?
hbtipssl.lib
I get: .F. -1 while using xHarbour I get: .T. 0 that is the right result. EMG
hbtipssl.lib
Sorry, I just edited my sample (using standard FW include now). EMG
hbtipssl.lib
Any ideas? EMG
hbtipssl.lib
I'm still stucking on this problem. Do I have to give up with Harbour and SSL? EMG
hbwin32.lib
Soy totalmente nuevo y a la hora de generar el exe me dice que falta la libreria hbwin32. ¿ donde está esta librería ? c:\xharbour\lib aquí no está y he mirado en varias versiones de harbour y no lo encuentro. Una ayudita para poder ver mi primer ejemplo tutor01, que no soy capaz es la versión fivewin 7.12 Gracias de antemano.
hbwin32.lib
HBWIN.lib ó HBW32.lib son para Harbour, no para xHarbour. Tienes que usar FWH\samples\buildx.bat en vez de FWH\samples\buildh.bat si vas a usar xHarbour <!-- s:-) --><img src="{SMILIES_PATH}/icon_smile.gif" alt=":-)" title="Smile" /><!-- s:-) -->
hbwin32.lib
gracias por contestar lo pruebo y comento.
hbwin32.lib
Muchas gracias ya lo he conseguido, aunque he tenido que modificar el fichero buildx Ahora SOLO me queda investigar como funciona esto, ya que deje clipper ara cosa de 5 años, y todo esto me pilla de nuevo.
hbxml.ch ?
Hola, Es normal que en la versión de Harbour 3.2 no esté el fichero hbxml.ch? Gracias,
hbxml.ch ?
Estimado Carlos, hbxml.ch está en c:\harbour\contrib\xhb\hbxml.ch
hbxml.ch ?
[quote="Antonio Linares":5fbmsgc9]Estimado Carlos, hbxml.ch está en c:\harbour\contrib\xhb\hbxml.ch[/quote:5fbmsgc9] De acuerdo; lo debí obtener de algún lugar, lo he recuperado. En el Harbour que permite bajar de Fivetechsoft sólo están las carpetas bin, include y lib. Por eso no lo encontraba, Muchas gracias
hbxml.ch ?
[url:3bbb9xd3]http&#58;//www&#46;fivetechsoft&#46;com/harbour/contrib/xhb/[/url:3bbb9xd3] [url:3bbb9xd3]http&#58;//www&#46;fivetechsoft&#46;com/harbour/contrib/xhb/hbxml&#46;ch[/url:3bbb9xd3] Regards, saludos.
hbxml.ch ?
[quote="karinha":3qgxpzp8][url:3qgxpzp8]http&#58;//www&#46;fivetechsoft&#46;com/harbour/contrib/xhb/[/url:3qgxpzp8] [url:3qgxpzp8]http&#58;//www&#46;fivetechsoft&#46;com/harbour/contrib/xhb/hbxml&#46;ch[/url:3qgxpzp8] Regards, saludos.[/quote:3qgxpzp8] Muchas gracias João,
hbxml.ch ???
Hola a todos, Finalmente me he actualizado a FWH 19.06... El caso es que estoy realizando un #include hbxml.ch y veo que la versión actual de Harbour no trae consigo este fichero, y no encuentro mis notas de "añadidos" al respecto. Este fichero es de Harbour o de XHarbour? Se ha substituido por otro? Es para no inventar la rueda. Muchas gracias,
hbxml.ch ???
[quote="FiveWiDi":290b4te2] Bien me creo el fichero, pero porque no viene con Harbour directamente? Muchas gracias,[/quote:290b4te2] Carlos, fijate que está en la carpeta xhb de las contribs, imagino que por eso Antonio no lo incluye en la construcción standard.
hbxml.ch ???
Aqui lo tienes en el repositorio de Harbour <!-- m --><a class="postlink" href="https://github.com/harbour/core/tree/master/contrib/xhb">https://github.com/harbour/core/tree/master/contrib/xhb</a><!-- m --> <!-- m --><a class="postlink" href="https://github.com/harbour/core/blob/master/contrib/xhb/hbxml.ch">https://github.com/harbour/core/blob/ma ... b/hbxml.ch</a><!-- m -->
hbxml.ch ???
[quote="cnavarro":196mgrby]Aqui lo tienes en el repositorio de Harbour <!-- m --><a class="postlink" href="https://github.com/harbour/core/tree/master/contrib/xhb">https://github.com/harbour/core/tree/master/contrib/xhb</a><!-- m --> <!-- m --><a class="postlink" href="https://github.com/harbour/core/blob/master/contrib/xhb/hbxml.ch">https://github.com/harbour/core/blob/ma ... b/hbxml.ch</a><!-- m -->[/quote:196mgrby] Ostras!! Bien me creo el fichero, pero porque no viene con Harbour directamente? Muchas gracias,
hbzebra.ch
where I can found these includes hbzebra.ch and hbzebra.h ?
hbzebra.ch
Silvio, \harbour\contrib\hbzebra\ or \xharbour\contrib\hbzebra\ Regards,
hbzip
Hola foro, alguien podría enviarme a mi correo la libreria?, muchas gracias de antemano. <!-- e --><a href="mailto:mserracat@terra.es">mserracat@terra.es</a><!-- e --> FWH 2.4 + harbour 0.43
hbzip
Mike, <!-- m --><a class="postlink" href="http://fivetechsoft.com/forums/viewtopic.php?t=3826">http://fivetechsoft.com/forums/viewtopic.php?t=3826</a><!-- m -->
hbzip
Antonio Esta libreria hbzip se puede usar con xHarbour? Donde encuentro informacion sobre las funciones de la misma? Saludos George
hbzip
George, Viene con xHarbour. Aqui tienes un ejemplo de uso: <!-- m --><a class="postlink" href="http://hyperupload.com/download/028f9bf771/testzip.prg.html">http://hyperupload.com/download/028f9bf ... p.prg.html</a><!-- m -->
hbzip
Gracias Antonio por el link. Mira, cuando incluyo la librería y compilo el ejemplo (zipper) que hay en el foro me sale lo siguiente: Compilando ... Harbour Compiler Alpha build 43.0 (Flex) Copyright 1999-2004, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'zipper.prg'... 100 200 300 Lines 330, Functions/Procedures 7 Generating C source output to 'zipper.c'... Done. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland zipper.c: Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_Wild2RegEx' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip Error: Unresolved external '_hb_fsDirectory' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip Error: Unresolved external '_inflateEnd' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_deflate' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_get_crc_table' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_deflateEnd' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_deflateInit2_' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_crc32' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_hb_xstrcpy' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip Error: Unresolved external '_hb_fsCurDirBuffEx' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zipnew Error: Unresolved external '_inflateInit2_' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_inflate' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_hb_retcAdopt' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip Error: Unresolved external '_hb_arraySetForward' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zipnew Error: Unresolved external '_hb_arrayAddForward' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip ¿Sabes de que puede ser? MUCHAS GRACIAS
hbzip
Mike, Posiblemente solo funcione con xharbour.
hbzip
Mike. Losl Zipper, Ziper2 y Zipper3 que puse en el link han sido creado para xHarbour como dice Antonio. Lo que pasa que la librería hbZip se encuentra en esta versión y no lo he visto en Harbour. Puedes ver qué sucede si haces una copia de hbZip y lo colocas como librería de Harbour y haces el proceso de compilado y enlazado. [quote="Mike Serra":2kbr3v9b]Gracias Antonio por el link. Mira, cuando incluyo la librería y compilo el ejemplo (zipper) que hay en el foro me sale lo siguiente: Compilando ... Harbour Compiler Alpha build 43.0 (Flex) Copyright 1999-2004, <!-- m --><a class="postlink" href="http://www.harbour-project.org/">http://www.harbour-project.org/</a><!-- m --> Compiling 'zipper.prg'... 100 200 300 Lines 330, Functions/Procedures 7 Generating C source output to 'zipper.c'... Done. Borland C++ 5.5.1 for Win32 Copyright (c) 1993, 2000 Borland zipper.c: Turbo Incremental Link 5.00 Copyright (c) 1997, 2000 Borland Error: Unresolved external '_Wild2RegEx' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip Error: Unresolved external '_hb_fsDirectory' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip Error: Unresolved external '_inflateEnd' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_deflate' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_get_crc_table' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_deflateEnd' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_deflateInit2_' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_crc32' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_hb_xstrcpy' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip Error: Unresolved external '_hb_fsCurDirBuffEx' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zipnew Error: Unresolved external '_inflateInit2_' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_inflate' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|ziparchive Error: Unresolved external '_hb_retcAdopt' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip Error: Unresolved external '_hb_arraySetForward' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zipnew Error: Unresolved external '_hb_arrayAddForward' referenced from C:\SOFTWARE\HARBOUR\LIBHOLD2\HBZIP.LIB|zip ¿Sabes de que puede ser? MUCHAS GRACIAS[/quote:2kbr3v9b]
hbzip
Estuve recompilando las librerías con bcc582, y el xharbour 1.21, pero en este no viene la librería hbzip, baje la contribución de xharbour.org, pero no sé como recompilarla, si alguien la tiene podría pasarmela. Gracias
hbzip
surGom si no me equivoco la libreria para xHarbour es zlib.lib, viene con la distribucion de fivewin
hbzip
Sí viene zlib, pero son distintas las funciones hb_compress(), etc, por eso deseaba utilizar hbzip.lib. Gracias Daniel
hbzip
Ó en sudefecto si alguien me indica como se utiliza hb_compress, ya que estuve probando y no lo pude usar. Gracias
hbzip
Disculpen la insistencia trate de utilizar las funciones de zlib y me da los siguientes errores Error: Unresolved external '_HB_FUN_ZIPNEW' referenced from Error: Unresolved external '_HB_FUN_ZIPCREATE' referenced from Error: Unresolved external '_HB_FUN_ZIPADDFILES' referenced from ** error 2 ** deleting E:\fivehme\fivehme.exe Ha habido ERRORES al intentar Generar la Aplicacion y tengo enlazada la zlib en la aplicación Falta algo para poder utilizarlo
hbzip
revisa este link [url:emneaju6]http&#58;//forums&#46;fivetechsupport&#46;com/viewtopic&#46;php?f=3&t=18964&hilit=hbzip[/url:emneaju6]
hbzip
Gracias Patricio, ahora pude compilar bien el programa,no se me dió por revisar en los foros de ingles Muchas Gracias
hbzip
<!-- m --><a class="postlink" href="http://www.filefactory.com/file/cd5ebe4/n/hbzipbcc582.lib">http://www.filefactory.com/file/cd5ebe4 ... bcc582.lib</a><!-- m --> <!-- m --><a class="postlink" href="http://www.filefactory.com/file/cd5ebe5/n/zlibbcc582.lib">http://www.filefactory.com/file/cd5ebe5 ... bcc582.lib</a><!-- m --> Ahí tienes los enlaces Luis
hbzip
Hola SURGOM Tienes los archivos zlibbcc582.lib y hbzipbcc582.lib Saludos elmo
hbzip FIVEWIN 8.03 / 8.09
Estou tendo problemas com HBZIP USO HBMAKEmeu makefile esta assim[quote:247i4642] LIBFILES = \tools\bcc55\lib\psdk\msimg32.lib // \tools\viacoral\viacoral.lib // \tools\twbrowse\twbrowse.lib // \tools\hbcomm\hbcomm2.lib // rddads.lib ace32.lib hbzip.lib // $(FWH)\lib\fivehx.lib $(FWH)\lib\fivehc.lib lang.lib vm.lib rtl.lib rdd.lib macro.lib pp.lib dbfntx.lib dbfcdx.lib dbffpt.lib common.lib gtgui.lib codepage.lib ct.lib tip.lib pcrepos.lib hsx.lib hbsix.lib [/quote:247i4642]c:\tools\bcc55\BIN\ilink32 @makefile.lnkTurbo Incremental Link 5.65 Copyright (c) 1997-2002 BorlandError: Unresolved external '_inflateEnd' referenced from C:\TOOLS\XHARBOUR\LIB\HBZIP.LIB|ziparchiveError: Unresolved external '_deflate' referenced from C:\TOOLS\XHARBOUR\LIB\HBZIP.LIB|ziparchiveError: Unresolved external '_get_crc_table' referenced from C:\TOOLS\XHARBOUR\LIB\HBZIP.LIB|ziparchiveError: Unresolved external '_deflateEnd' referenced from C:\TOOLS\XHARBOUR\LIB\HBZIP.LIB|ziparchiveError: Unresolved external '_deflateInit2_' referenced from C:\TOOLS\XHARBOUR\LIB\HBZIP.LIB|ziparchiveError: Unresolved external '_crc32' referenced from C:\TOOLS\XHARBOUR\LIB\HBZIP.LIB|ziparchiveError: Unresolved external '_inflateInit2_' referenced from C:\TOOLS\XHARBOUR\LIB\HBZIP.LIB|ziparchiveError: Unresolved external '_inflate' referenced from C:\TOOLS\XHARBOUR\LIB\HBZIP.LIB|ziparchive
hbzip FIVEWIN 8.03 / 8.09
Tienes que enlazar ZLIB.LIB tambien
hbzip.LIB de xHarbour 0.99.51
Alguien sabe de donde descargar las contribuciones de xHarbour compiladas con la versión 0.99.51, resulta que las que están en <!-- w --><a class="postlink" href="http://WWW.XhARBOUR.ORG">WWW.XhARBOUR.ORG</a><!-- w --> son de la versión 0.99.50 y claro, al compilar todo me da error de hb_stack en la libreria hbzip.lib Quien me puede enviar hbzip.lib compilada con la versión 0.99.51 o decirme de donde la puedo descargar Muchas gracias y un saludo
hbzip.LIB de xHarbour 0.99.51
Resulta que el xharbour q distribuyes y la libreria hbzip.lib (contribuciones) de xHarbour tienen un error : Error: Unresolved external '_hb_stack' referenced from C:\FTDN\XHARBOUR\LIB\HBZIP.LIB|zip Puedes distribuir en tu xharbour las contribuciones compiladas con la misma versión? Un saludo
hbzip.LIB de xHarbour 0.99.51
Jesús, Lo idóneo es que solicites en xharbour que te proporcionen la librería compilada con la versión más reciente.
hbzip.lib
<!-- m --><a class="postlink" href="http://hyperupload.com/download/02aca05351/hbzip.zip.html">http://hyperupload.com/download/02aca05 ... p.zip.html</a><!-- m -->
hbzip.lib de xHarbour en distribución de Octubre mal
Por si utilizan hbzip.lib de xharbour: He podido constatar que se produce un GPF al tratar de realizar copias de seguridad con la hbzip.lib distribuida con xharbour en la construcción de Octubre. La he sustituido por la anterior de Septiembre y ya funciona correctamente. Un saludo, Manuel
hbzip.lib de xHarbour en distribución de Octubre mal
Manuel, Gracias por la información,
hbzip.lib para Harbour
Hola a todos ¿Alguien ha podido montar o sabe de donde descargar la librería hbzip.lib para Harbour? Muchas gracias.