Web bridge between Java client and C # class library

I have a class library containing approximately 10 dlls written in C # 3.0 / .NET 3.5. The library API provides access to my product running on a remote server. Communication is done using TCP sockets.

I am looking for a way to write a client application for android / Linux in java. The problem is that the API is quite large, and converting it from C # to java can take a lot of resources and time. Trying to avoid conversion.

Can anyone think of how to achieve a working android client that uses the C # API without having to embed it in the client? The idea is to force the web service to do all the work with the main API and access it from java, the problem is that the TCP connection to the server must be open at any time, and the web service solution has no status . Maybe a way to use a web service with a permanent connection (is there such a thing?). Any creative ideas?

+3
source share
3 answers

Why should tcp connection be open all the time? A web service would be a good solution, because on the Java side you can create stub / proxy classes and almost never work.

+1
source

: TCP-, . , :

{class: "BankService", : "StealMoney", : {amount: 123}}

.

0

Sorry, it took so long to answer this. In scenarios other than Android, JNBridgePro (www.jnbridge.com) would be a good solution. We have never run anyone on the Java side on Android, but we would be happy to work with you to make this work.

Disclosure: I work for JNBridge.

0
source

All Articles