Click here to Skip to main content
15,886,815 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I'm involved in a large J2EE project replacing legacy FORTRAN90 and COBOL back-office applications with a SOA system.

I need a PoC for making calls to the new Java services on the ESB from within existing FORTRAN90 applications (which are not replaced but certain functions need to be integrated with the new software), preferable over HTTP (or socket connections if that is not possible).

The FORTRAN90 applications run on OpenVMS on HP and access an Oracle Rdb database thru ModularSQL calls.

They acces Rdb record structures thru DICTIONARY calls to a CDD/Plus data dictionary system.

The main goal : connect from a Fortan application to a JSON Rest WebService (HTTP Get/PUT/POST with JSON payload)

The key questions :

Is it possible to create socket connections in a Fortran application ?

Is it possible to communicate with the HTTP protocol in a Fortran application ?

Is it possible to call a Java application/library in a Fortran application ?
Posted

1 solution

It's probably easier to expose required functionality as stdcall c functions using mixed mode c++/cli in a dll, and then use WCF to access the web service.

The vendor of the fortran compiler usually include instructions on how to access stdcall c functions from fortran.

Regards
Espen Harlinn
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900