What is a good platform for devoloping web services in C ++?

We are considering developing a web service that will serve as the basis for displaying the / gui browser for a network security prototype written in C ++. My experience with web services is limited to Java. I prefer web services in Java because it is on a "beaten path".

Of course, you just had to encode the Java client that calls the web service and call it the command line with C ++ code parameters.

This is not ideal, since, generally speaking, an API is preferable, but in this case it will work and will be a fairly safe solution.

The resource that handles the development of web services in C ++ is called gSOAP, at this URL: http://gsoap2.sourceforge.net

Any thought that fits better? Has anyone used gSOAP, and if so, what do you think?

+3
source share
8 answers

My colleague ended up using a combination of Axis2 / java (for a service) and gsoap for a client. He created wsdl from the Java service, creating it from the C ++ header (using c2wsdl (?) Or something like that. He said that this is better than using the Java interface because it created two sets of wsdl for separate versions soap.

He then used wsdl2java to create a web service and test web client. Once we got this working, he used gsoap to create a web client (in C ++), and it worked fine.

Thanks for all the answers! I ended up using their combination.

+2
source

- gSOAP, . , RPC -; , . REST .

+3
+2

RPC Thrift, (, , ), .

+2

gsoap - , .

+1

Windows, API: WWSAPI

+1

Instead of calling the java client from the command line, you can create a Java virtual machine in your C application, create an instance of the class, and call any methods. This is what the java.exe application does, and I think the source code is included in jdk.

+1
source

Depending on how you want to go low. You can check yield .

+1
source

Source: https://habr.com/ru/post/1709095/


All Articles