Can I get a cross-platform cross-technology solution?

We have an old application that has a FORTRAN API to call from other applications. After some time, they built a (C) shell for the FORTRAN API. Then I create a C ++ wrapper with a little data processing for the C API.

So, I think the best way to create an API that can be called from any programming language.

Now I plan to redirect the RPC server from my C ++ API. Then any client using any programming language can call it.

I found that XML-RPC is good. But an HTTP server is required to connect .

The problem is that the applications that call our API are desktop applications. And I found that XML-RPC cannot manipulate complex objects.

Is SOAP a good solution? Can the client side be easily implemented?

So what is the best technical solution for my situation? What technology should I use?

comment: I don’t have permission to change Fortran APIs and API C. And I need C ++ APIs because I add new methods to it and improve the code so that the user can easily call methods.

Regards,

+3
source share
3 answers

API . Fortran . , "" C , , . FFI C - , Java, .

Fortran ( ) . , Fortran ISPF .


API ++, API Fortran, SWIG, , ++ .

+2

- C API. API C, , .

, , GTK+. C API . - , API GTK +, , API.

? , ++.

RPC, ?

+2

SOAP, ect XML-RPC are commonly used to communicate with computer and computer, is that what you want? Or does it all work on just one comuputer?

If it's just on one computer, just stick with the C API, most systems can use this

If you model the C API as a REST style service, then you can also provide an HTTP service for applications that cannot use the C API but have only one system for documenting

0
source

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


All Articles