Skip to Content
0

Authorization error - Accessing HTTPDest File

Aug 03, 2017 at 12:30 PM

156

avatar image

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??

Regards

Giri

10 |10000 characters needed characters left characters exceeded

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

0

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 proj.inv.services.v1_0.libs folder

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Florian Pfeffer
Aug 04, 2017 at 04:58 AM
1

The xsjs coding and the destination used by the xsjs coding are not in the same package (proj.inv.services.v1_0.external <> proj.inv.services.v1_0.libs). 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.

Regards,
Florian

Show 1 Share
10 |10000 characters needed characters left characters exceeded

i was in a understanding that, it should be in same package. But, it seems it should be in the same subpackage/folder as well.

Thank you, Florian

Regards

Giri

0