Torp
Torp

Reputation: 7924

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

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...

Upvotes: 9

Views: 9254

Answers (2)

J. M. Becker
J. M. Becker

Reputation: 2815

Half-decade late to see this one, but I wanted to mention another project.

csoap, it's written in C and uses libxml. I'm note sure about all it's features, but it should definitly be an improvment over full manual.

Upvotes: 1

neuro
neuro

Reputation: 15180

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.

Upvotes: 1

Related Questions