I'm having a big problem trying to get gsoap working with OpenSSL. It all compiles with no errors, it just doesn't work for me, thus I must be doing something wrong.
I compile OpenSSL then GSOAP as instructed (configure, make, make install).
Then I run:
wsdl2h -c -o headerfile.h wsdlurlgoeshere (it's a https url)
This gets all the WSDL data fine.
Then I run:
soapcpp2 headerfile.h
This creates all the soap files fine.
Then I create a simple test script (test.c) that includes soap and the nsmap file. My main function just calls a function of the API and returns to print a success message.
So I compile that:
gcc -0 test test.c soapC.c soapClient.c -lgsoap
This compiles without any errors.
Then I run the program ./test and I get the following displayed:
SOAP 1.1 fault: SOAP-ENV:Client [no subcode]
"OpenSSL not installed: recompile with -DWITH_OPENSSL"
Detail: [no detail]
When gsoap compiles it says compiling with OpenSSL and such and works fine.
If I try compile the test with either:
gcc -0 test test.c soapC.c soapClient.c -lgsoapssl
Or
gcc -0 test test.c soapC.c soapClient.c -lgsoapssl++
Then I get a bunch of errors although that could be more correct.
I've tried recompiling openssl and gsoap 100 times trying different things but I just get no success.
So if you can let me know where I'm going wrong or tell me specifically how to get this going it'd be much appreciated.
I'm sorry I couldn't give the actual WSDL and code but I'm under NDA for this API at the moment.