Link to home
Start Free TrialLog in
Avatar of BlearyEye
BlearyEyeFlag for United States of America

asked on

Call C# method from C

Is there a way to call a C# method from C?

I have a C program that needs to access a web service (it's located at http://164.107.119.12/KanseiGateway/). It supports SOAP 1.1, SOAP 1.2, HTTP GET, and HTTP POST. I've tried to use CSOAP for this (see https://www.experts-exchange.com/questions/24003867/Accessing-a-webservice-using-C.html) but so far to no avail. There's very little doc on CSOAP and the Wiki that was supporting it seems to have disappeared.

I can access the web service successfuly using C#. I have it running under mono on Linux. My current thought is to write a dll in C# to handle the web service interaction and call it from C. Any thoughts on (a) the viability of this approach (b) alternatives and (c) how to do it if it's the way to go.

--Bill
ASKER CERTIFIED SOLUTION
Avatar of F. Dominicus
F. Dominicus
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of BlearyEye

ASKER

I'll check out the Oracle offering first ... I really don't want to kludge around with calling C# from C if I can help it.
still checking ...
as it turns out, we finally got csoap to work. I'll give credit for good suggestions, however.

thanks, Bill