Hello! There is a server-side application written in C # and an Android application in Java. How can I get in touch with the RPC feature? Is it possible to make a duplex callback connection? Good articles, examples are welcome.

    3 answers 3

    HTTP (in particular, REST) ​​and protocols that run on top of HTTP (SOAP).

      Look toward the CORBA . An example of RPC organization between .NET and Java using CORBA here

      • @Barmaley I'm afraid a binary is not very suitable for communicating devices with servers in a heterogeneous network. You cannot guarantee that the ports you need will be open. Yes, and about the existence of korbyachi brokers for Android, I doubt it. - a_gura
      • one
        Well then, only SOAP - oh, I don’t envy the author :) - Barmaley

      RPC works both over HTTP and independently of it.
      Usually RPC text: JSON-RPC or XML-RPC .

      JSON-RPC is perfect for interaction between C # and Android applications in Java - compact and can be implemented without third-party libraries.
      If desired, RPC can be made both binary and used without HTTP and in a duplex channel (for example, WS ).

      And SOAP IMHO, outlived its own - cumbersome, difficult to maintain (without specialized bells and whistles) ... hmm, a thing.

      Wherever SOAP is used, it can be replaced with JSON-RPC or XML-RPC (they can be slightly extended if you need to sign messages).
      And to describe a web service, you can use a compact description, such as SMD .