Hi to Everybody. First of all sorry for my English, but I don't write in english very soon....
I need help about requesting a .pdf file (for example the stamp of a Sales Invoice) from NAV and receiving it by the webservice through HTTP POST.
I have already written the code to send the request to the webservice like this:
CREATE(locautoHTTPPOST);
locautoHTTPPOST.Open('POST','
https://www.g*****way.it/g*******new/ricercadocumentipost.aspx');
Testo := 'CodiceLicenza' + '=' + 'G00*****' +
'&' + 'CodiceAziendaSIA' + '=' + 'P***P' +
'&' + 'Nickname' + '=' + 'webservice' +
'&' + 'Password' + '=' + '6******3' +
'&' + 'CodiceGrafica' + '=' + 'F' +
'&' + 'NomeCampoRicerca' + '=' + 'G0000371_CAMPO2' +
'&' + 'ValoreCampoRicercaa' + '=' + 'VB09-00001';
locautoHTTPPOST.Send(Testo);
locautoHTTPPOST is ean AUTOMATION of Microsoft WinHTTP Services
Testo is a Text Variable in wich i store some values of the document i want to receive form the webservice (written following the vendor of the webservice guidelines)
Now that i have sended the request I expect the webservice to respond sending the pdf, but i don't know how to receive it, and see it or save it in a file...
Could you help me in some way?
Thanks to all of you!!!
Comments
it's the same principle.
Also follow the links on this post: viewtopic.php?f=23&t=35176
ara3n post in his BLOG some examples and will also create a detailed step by step process on how to use web services.
Regards
But the problem is that i want to receive a .pdf file, and not a .xml one.
It is the same? or i have to use different automation to handle .pdf ?