cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Web client authorization by Token

hansg
Explorer
0 Kudos
1,117

How can I consume a rest webservices that uses a Token as authorization?

I created this function: ALTER FUNCTION "dba"."fn_AFAS_subscriptions"( ) returns long nvarchar url 'https://12345.rest.afas.online/ProfitRestServices/connectors/Profit_Subscriptions' type 'HTTP:GET' header 'Authorization: AfasToken PH..<base64 encoded="" string="">..uPg=='

When I call this function I get: Could not execute statement. The secure connection to the remote host failed: The connection was closed from the other side SQLCODE=-990, ODBC 3 State="HY000" Line 1, column 1 call "dba"."fn_AFAS_subscriptions"()

I tried also toe replace AfasToken to Bearer. Did not help also.

Is this a problem of authorization or TLS versions or ...?

The url work fine when I executed it with a online rest client test tool in the browser. So the token and url are correct.

Using SA17,0,10 build 6230.

Tia Hans

Accepted Solutions (0)

Answers (0)