I am using gsoap for calling a wcf webservice. My requirement say I must use ssl protocol to secure communication. I read an article as my reference for ssl configuration.
But in compiling I get following error:
Error 1 error LNK2019: unresolved external symbol _soap_ssl_init referenced in function "public: int __thiscall LogServicesFacade::SendFileToServer(char const *)" (?SendFileToServer@LogServicesFacade@@QAEHPBD@Z) E:\Path\To\My\Solution.Project\LogServicesFacade.obj Solution.Project
Here is my code:
_ns1__StoreEventFileResponse response;
_ns1__StoreEventFile input;
struct soap *soap = soap_new();
/*if (!sslInitiated)
{*/
soap_ssl_init();
//if (soap_ssl_client_context(soap, SOAP_SSL_DEFAULT, NULL, NULL,
//"C:\\Path\\To\\Certs\\File\\cacerts.pem", NULL, NULL))
//{
soap_print_fault(soap, stderr);
//}
//}
I comment some another ssl function to reducing errors for simplicity.
Update 1
It is worth to mention that I use VS 2013. So I use Visual C++ as my compiler. Also I saw gSOAP ssl document. The author said I must add Option DWITH_OPENSSL
to compiler. How I can add this to VC compiler?