knaser
knaser

Reputation: 1441

A Good C++ Library for SOAP

What are the alternatives for SOAP development in C++? Which one do you prefer and is most supported/modern?

Upvotes: 34

Views: 52349

Answers (6)

Thomas Hansen
Thomas Hansen

Reputation: 5513

SmartWin++ have a side-project called SmartSOAP which is pretty neat I think, it features a pretty complete stack starting from SocketStream, working its way up to HttpRequest/Response objects. Features a small (to the job) XML DOM class abstraction and goes up to SOAP. It even comes with a WSDL parser to create proxy classes for you. It heavily uses templates and STL. And is pretty awesome C++. Works on Windows Mobile...

Though it isn't extremely rich, doesn't feature stuff like SSL and such. But since the code is pure art I would guess it could easily be understood and extended upon yourself...

License is New BSD...

Disclaimer; I implemented it...

Upvotes: 3

antonio
antonio

Reputation: 477

KD Soap if you are in Qt C++. This is the URL https://www.kdab.com/kd-soap/

Upvotes: 5

TJ Bandrowsky
TJ Bandrowsky

Reputation: 882

If you are writing for Windows, Microsoft has a utility that comes with the Windows 7 SDK (And visual studio 2013 and later) called WSUTIL. It generates C proxies given a WDSL file, as shown in this example.

http://msdn.microsoft.com/en-us/library/windows/desktop/gg288974.aspx

Upvotes: 6

Sean Edwards
Sean Edwards

Reputation: 2093

I stumbled on gsoap awhile ago, but I wasn't a huge fan of its interface and code generator. And as I remember it, the documentation is significantly lacking (or at least in a very difficult format).

Sometime in the near future, though, this library may be adding sockets support. At least, I suggested it to the developer some time ago and he seemed to think it was the idea, and a few months later an XML parser showed up in the API. I'm a big fan of that library, and would definitely use it more if it wasn't GPL.

Upvotes: 6

Ma99uS
Ma99uS

Reputation: 10931

Check out Apache Axis. That is my all times favorite SOAP implementation. It's SOAP done right! Exists for C++ and Java.
http://ws.apache.org/axis/
And in best traditions of Apache Foundation, it is FREE and OPENSOURCE.
So, enjoy!

Upvotes: 17

JamieH
JamieH

Reputation: 4849

I had to make SOAP calls for a project a while ago and the only acceptable solution I found was GSOAP.

http://www.cs.fsu.edu/~engelen/soap.html

It supports both C and C++ code, although working with C++ is nicer and easier to understand. It worked ok although there was an incompatibility with our WCF web service which meant we had to manually edit the automagically generated source code.

Upvotes: 8

Related Questions