Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Which linux C/C++ SOAP library? Need very lightweight recommendations

Tags:

c++

linux

soap

arm

I need to do just one SOAP over HTTP request in an application. No other transports than HTTP, i'll just to the request and crunch the response. Due to it being just one request, i don't really need something that has a c++ code generator from WSDL, just some API to build the request with.
This will be on a cpu and memory constrained system (arm), also generally crippled in the support libraries department.
I can do plain C or C++, i have some kind of (also crippled) STL, but not much else and i'd rather not add too many megabytes of libraries.
I have libxml2 (not sure if it has any connection, but i'm a SOAP noob) on my target platform.
Needs to compile on gcc/linux, of course. I can handle any x86->arm transition oddities.
gSOAP is out of the question because of licensing and hugeness.
Some googling led me to http://simplesoap.sourceforge.net/ but i'd like to hear if there are any alternatives before i dive in.
So, any other sugesstions from fellow SO members? Thank you.


simpleSOAP doesn't compile with a modern gcc (example: error: taking address of temporary [-fpermissive]). I can probably fix that but not for one request.
So... manual it is...

like image 519
Torp Avatar asked Dec 15 '11 16:12

Torp


1 Answers

Well, if it is that simple, you can use a low level HTTP lib like libcurl and code your request by hand or using an xml lib.

I do not know simplesoap. I've just browsed the site, it seems adequate ^^

I agree with you on gSoap :)

My 2 cents.

like image 100
neuro Avatar answered Oct 09 '22 03:10

neuro