简体   繁体   中英

C# client and Java server

I have developed a retail EPOS solution in C# which runs on tills. I would like this to interface with a back-end Java server. The Java server will be used for running all back-office tasks such as reports.

What is the best method to get a C# client and a Java server talking to each other? Of course, if this were a sole Java setup, then RMI would be used.

I have a gut feeling that a web service is best here, but I am lost to what type of web service I'd be looking for.

I had a crazy "bad" idea that I could put a php script on the server which the C# client could call using HTTP and Curl (or C#'s equivalent) and send arguments via GET or POST. However this would be put a total disconnection between the java "back-end" server and C# client.

Any ideas would be appreciated

Cheers

最好的方法是Web服务(SOAP),Java和dotNet提供足够的支持...

We has this same issue, and found that a Webservice was indeed the best way to go. The speed has been very satisfactory for large scale usage too.

We made the service on the Java side of things, and created a Class file for the C# system from the WSDL endpoint using the Visual Studio command-line line tool "WSDL.exe".

MSDN Visual Studio WSDL Tool

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM