Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

C++ Library for implementing a web services api over legacy code?

Does anyone know of any really good C++ Libraries for implementing a web services api over top of existing legacy code?

I've got two portions that are in need of it:

  • An old-school client/server api (No, not web based, that's the problem)
  • An old cgi application that it integrates with the client and server.

Let me know if you've had any luck in the past implementing something like this using the library.

like image 707
leeand00 Avatar asked Jun 19 '26 12:06

leeand00


2 Answers

Microsoft has put out native code webservices API (WWSAPI) that looks pretty decent. I haven't had a chance to use it yet. We had originally ignored it, since it required Windows 7 or Server 2008, but they've finally released a runtime library for older OSs.

I would advise staying away from Microsoft's old SOAP SDK. For one, it's been deprecated; two, it's not terribly easy to distribute; and three, it's terrible to code for compared to the .NET offerings.

What we've done is written a bit of C++\CLI to interface our existing C++ codebase with .NETs webservice framework. This turned out to be remarkably easy. .NET will generate all the classes and boilerplate code you need based of of a WSDL file. Then you just write some C++\CLI code to handle the incoming data as managed classes and fill in some managed classes as responses.

like image 69
Eclipse Avatar answered Jun 21 '26 06:06

Eclipse


You can use the Apache AXIS/C interface to build a web services interface. It has plugins for Apache and IIS (and I think FastCGI), and lets you talk web services to your legacy code.

like image 39
Chris K Avatar answered Jun 21 '26 08:06

Chris K



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!