how to use SSL in C++ gSOAP generated classes

前端 未结 4 2098
眼角桃花
眼角桃花 2021-02-15 13:31

i need to use gsoap library in C++ and i need to use https. documentation says how to work with HTTPS in C, but not in C++ (http://www.cs.fsu.edu/~engelen/soapdoc2.html#tth_sEc1

4条回答
  •  独厮守ぢ
    2021-02-15 14:01

    This works for me:

    soap_ssl_client_context(m_proxy.soap, SOAP_SSL_NO_AUTHENTICATION, NULL, NULL, NULL, NULL, NULL);
    

    where m_proxy is an instance of the client proxy generated using gSOAP:

    wsdl2h.exe -o MyWebservice.h ..\MyWebservice.wsdl
    soapcpp2.exe -IC:\gsoap-2.8\gsoap\import -j MyWebservice.h -C -1 -SL
    

提交回复
热议问题