I have written a client for experttexting web-service using C++ and gSOAP. Currently this client should call the SendSMS procedure and send a single sms text message to a number specified in place of 'TO' (please see cod below). The program runs smoothly but the sms text message is not delivered. Upon investigation I found that the line
int message_status_code=service.SendSMS("https://www.experttexting.com/exptapi/exptsms.asmx","SendSMS",request_packet,request_packet_response);
gives the error code which has a value equal to SOAP_SSL_ERROR.
To rectify this problem I used the flag -DWITH_OPENSSL while compiling using g++ but to no avail.
Please help me to debug this problem.
#include "soapH.h"
#include "ExptTextingAPISoap.nsmap"
#include "soapExptTextingAPISoapProxy.h"
int main(){
struct soap soap;
soap_init(&soap);
string UserID="MY USER Id";
string PWD="MY PASSWORD";
string APIKEY="MY API KEY";
string FROM="FROM";
string TO="RECEIVER";
string MSG="MY MESSAGE";
_ns1__SendSMS* request_packet=soap_new_set__ns1__SendSMS(&soap,&UserID,&PWD,&APIKEY,&FROM,&TO,&MSG);
_ns1__SendSMSResponse* request_packet_response=soap_new__ns1__SendSMSResponse(&soap);
ExptTextingAPISoapProxy service(soap);
int message_status_code=service.SendSMS("https://www.experttexting.com/exptapi/exptsms.asmx","SendSMS",request_packet,request_packet_response);
service.destroy();
return 0;
}