I have created a simple backend suitelet which makes a call to external SOAP web service to obtain data and then it returns some parts of data in response as JSON. When I am using web browser to make a GET request to this suitelet it works well. But I can not obtain data by making call within another suitelet.
I am using nlapiResolveURL function to get external url to my backend suitelet. After concatenating that url with parameter I am using nlapiRequestURL to make a GET request.
There is html document in response body and response code is 206.
This document contains following information:
Notice
You are not allowed to navigate directly to this page.
Is it possible to utilize suitelet as a backend service for another suitelet? Or maybe It is necessary to use RESTlet in such scenario?