Skip to Content

Authorization error - Accessing HTTPDest File

Hi Friends

I am trying to access a external webservice, from HANA. But, I am getting an error when accessing the HttpDest file. Error: "User is not authorized to use destination"

I have the required HttpDestViewer role. And also the xsjs and HttpDest file are in the same package.

We are on HANA 2.0. Any thoughts??



Add comment
10|10000 characters needed characters exceeded

  • Can you share the package structure and the piece of code which reads the destination?

  • var rootProjectPath = 'proj.inv';

    var jdaPackagePath = rootProjectPath + '.services.v1_0.external';

    try {

    var dest = $.net.http.readDestination(jdaPackagePath, "jdaApi");

    var client = new $.net.http.Client();

    This is called from a xsjslib file, which is in folder

  • Get RSS Feed

1 Answer

  • Best Answer
    Aug 04, 2017 at 04:58 AM

    The xsjs coding and the destination used by the xsjs coding are not in the same package ( <> This is one issue.

    Please try to save the destination file in the same package (or in a sub package) in which the xsjs coding is saved.


    Add comment
    10|10000 characters needed characters exceeded