Win32 web service client over SSL
-
How do I access a web service over SSL? My client app works with
"http://..."
but doesn't work with"https://..."
. I've managed to create a proxy class with"https://..."
but calling any function gives me"SOAPCLIENT_SEND_ERROR"
. Solutions found by google tells me that I should either use Wininet function or CInternetSession but I'm reluctant to make major changes such as rewriting the proxy class generated by VS2005. -
How do I access a web service over SSL? My client app works with
"http://..."
but doesn't work with"https://..."
. I've managed to create a proxy class with"https://..."
but calling any function gives me"SOAPCLIENT_SEND_ERROR"
. Solutions found by google tells me that I should either use Wininet function or CInternetSession but I'm reluctant to make major changes such as rewriting the proxy class generated by VS2005.This could be a hack. I don't know. Initially, my proxy class was derived from
CSoapSocketClientT
. So, I've changed it to derive fromCSoapWininetClient
instead.template <typename TClient = CSoapWininetClient >
//template <typename TClient = CSoapSocketClientT<> >This solution seems to work. Also, I had to remove the web reference(*.disco, *.wsdl, *.discomap) from my solution explorer to prevent it from refreshing the proxy class file.