Download file from Web Service in Al Extension

Hi,

I’ve been workin in a solution to connect to a remote Web Service to retrieve data and files. Data part is quite easy to realice in Al extension. But if I want to download the file in this web service I can’t get the right response from the web service, I accept ‘application/pdf’ in headers, but still get response ‘application/json’

Can’t anybody help

Thanks in advance,

Psice