on 2021 Oct 27 10:37 AM
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
User | Count |
---|---|
73 | |
10 | |
8 | |
7 | |
7 | |
6 | |
6 | |
6 | |
6 | |
6 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.