I’m trying to use gSoap to connect to a web service secured with https. However, when I run wsdl2h with an https url, it throws the following error:
Cannot connect to https site: no SSL support, please rebuild wsdl2h with SSL or download the files and rerun wsdl2h
I’m building on Fedora Core 14. I have installed openssl-devel and zlib-devel using yum. What have I missed?
By default wsdl2h is built without support for SSL. The README.txt file in the wsdl code folder of the gsoap distribution contains the following:
So you need to either download the .wsdl file manually and run you existing wsdl2h on it or rebuild wsdl2h with make secure so that it knows to include the SSL libraries and support for https.