Hi,

We have integrated Tryton with BikaLims using BikaLIMS JSON API 
(https://github.com/bikalims/bika.lims/wiki/BIKA-JSON-API)

For this, our Tryton module connects and retrieves data from BikaLIMS and 
stores it in database. But, now we have a requirement in which we want to 
download reports from BikaLims and display them in PDF Viewer. 

For example, from my module, I want to send following HTTP request after 
authentication:

http://172.29.0.6:88/lims/clients/client-1/blood-5406-R01/arreport-15857/at_download/Pdf

As a response, I will receive the HTTP Response containing contents of PDF 
report.

What is the best way of displaying this PDF file using Tryton?

Should I write an action which does authentication and returns the 
above-mentioned URL and rest is handled by the Tryton? If so, any reference 
example please.

Should I write an action which does authentication, writes the contents from 
HTTP Response to a temporary file which is returned to Tryton for display. If 
so, any reference example please.

By the way, I could not find some example for Action of Type URL and also there 
is a 'Web Services' sections in Tryton Documentation which is empty.

Thanking in anticipation.

Khurram.

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/b4df1318-caee-472e-9533-ce0116033838%40googlegroups.com.

Reply via email to