Hi folks,
I am new to gsoap(and also c :-) ). I am trying to call a Java Web service
through C program over a SSL layer. I have been given a key file and password
for the Server. On the client side, I have installed OpenSSl.I have place my
key file in the same folder where I am running my sslclient and provided the
information to this key file and password in my client program as follows :
if (soap_ssl_client_context(&soap,
//SOAP_SSL_DEFAULT | SOAP_SSL_SKIP_HOST_CHECK,
SOAP_SSL_DEFAULT ,
"abc.company.com.key", /* keyfile: required only when client must authenticate
to server (see SSL docs on how to obtain this file) */
"password", /* password to read the key file */
NULL, /* cacert file to store trusted certificates (needed to verify server)
*/
".", /* capath to direcoty with trusted certificates */
NULL /* if randfile!=NULL: use a file with random data to seed randomness */
))
I am calling the webservice with the service end point as given below :
if(soap_call___ns2__Calculate(&soap,"https://webservice.dev.bosptc.companyname.com/ias/gcs/sts",NULL,&ns3__CalculateRequest,&ns2__CalculateResponse)
== SOAP_OK)
I amnot sure what I am missing. I am getting the following error when my run my
sslclient :
Error 26 fault: SOAP-ENV:Server [no subcode]
"SSL error"
Detail: Can't read certificate key file
I have enabled debug and there are not RECV.log or SENT.log generated. Test.log
as the following captured :
Initializing context
Reinitializing context
Free namespace stack
Free any remaining temp blocks
Free attribute storage
Free pointer hashtable
Free ID hashtable
../../stdsoap2.c(5407): malloc(96) = 0x198aaf80
../../stdsoap2.c(5407): malloc(56) = 0x198ab2c0
Any idea whats happening ?
Thanks!