Archived Forum PostQuestion:
I used gsoap to access my ws (SSL), now that I have CHILKAT,I would like know, if have any way to use SSL in this sample:
Yes, it is very easy. Change the following code fragment from this:
const char * domain;
long port;
bool ssl;
domain = "www.webservicex.net";
port = 80;
ssl = false;
CkHttpResponse *resp = 0;
resp = http.SynchronousRequest(domain,port,ssl,req);
to this:
const char * domain;
long port;
bool ssl;
domain = "www.webservicex.net";
port = 443;
ssl = true;
CkHttpResponse *resp = 0;
resp = http.SynchronousRequest(domain,port,ssl,req);