C++ web service framework

2019-01-17 02:20发布

We are looking for a C++ Soap web services framework that support RPC, preferably open source. Any recommendations?

12条回答
仙女界的扛把子
2楼-- · 2019-01-17 02:49

You can check out xmlbeansxx. This is a kind of lightweight, low level solution, compared to complete frameworks. This has advantages in some cases.

Invoking SOAP WebServices using xmlbeansxx Article

Code example is here: WsClient.cpp.

查看更多
Fickle 薄情
3楼-- · 2019-01-17 02:52

I think the way to go is to write your service in C++ (I am assuming you did all the homework and there is a good reason you want to write in C++) and then front it using an RPC server. Use something like Thrift or Protobufs for a fast RPC implementation.

Now write your web frontend in the language of your choice - python would be mine - and make RPC calls to do all your heavy lifting.

查看更多
倾城 Initia
4楼-- · 2019-01-17 02:56

Try the ffead-cpp framework, it provides in-built web-service support, rest, json and many other useful features.

查看更多
Rolldiameter
5楼-- · 2019-01-17 02:56

I concur with imjorge's answer and add that there's a C/C++ version of the Axis2 framework (a more flexible, extensible Axis) that does SOAP via RPC and all sorts of stuff including a bunch of the WS-* specs.

http://ws.apache.org/axis2/c/

查看更多
贪生不怕死
6楼-- · 2019-01-17 02:58
Ridiculous、
7楼-- · 2019-01-17 02:58

You could try gSOAP. Available under GPL and commercial licences.

查看更多
登录 后发表回答