BlearyEye
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
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
still checking ...
ASKER
as it turns out, we finally got csoap to work. I'll give credit for good suggestions, however.
thanks, Bill
thanks, Bill
ASKER