on 2023 May 02 2:17 PM
This more a post of observations we have following successfully deploying the SQLA webclient to communicate with a third party webserver as most of the information we found was out of date:
1) Sybase 17.0.11 on Windows uses the operating systems certificate store, provided the server is using a public CA there is no need to declare the certificate in the Procedure.
2) Remember to set "type 'HTTPS:POST'
" rather then HTTP:POST
or HTTP:GET
etc
3) Set the header "Connection:keep-alive
" otherwise you may get intermittent exception WW059 "The secure connection to the remote host failed: The connection was closed from the other side"
4) You probably want to ensure you use "set 'HTTP(EXCEPTIONS=off; VERSION=1.1)'
"
5) set option "remote_idle_timeout"
, it defaults at 15 seconds which is no good, we have gone for 180 seconds
The above has certainly given us a rock solid https client which communicates with third parties nicely.
Just to add: To understand and check requests and responses, particularly for newly embedded web services, we usually have to turn on "Web client logging debugging" temporarily, as described here.
FWIW, the usage of this feature via "dbsrvX -zoc MyWebClientLog.txt" or
call sa_server_option('WebClientLogFile', 'MyWebClientLog.txt'); call sa_server_option('WebClientLogging', 'On');has not changed for newer versions.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
67 | |
8 | |
8 | |
6 | |
6 | |
6 | |
6 | |
6 | |
5 | |
5 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.