Yes, absolutely. You only need to develop your
application-level protocol and match is on both client and server sides. You need to make sure that your different types (managed and unmanaged) serialize and deserialize in an identical way.
One of the ways to do it in these different technologies is to reduce serialization to a sequence of primitive types of the same size and pass them in their binary form. As nearly all systems use IEEE 754 standard for
floating-point types and
two's complement for integer types; and because you can use the same encoding for serialized texts, all the data will be interpreted correctly. You can also exchange text messages, but you would need to have identical text generation and parsing on both sides, might be not very efficient in case of complex parsing (even if you merely parse numbers). It could be XML, JSON, or anything else.
Please see:
http://en.wikipedia.org/wiki/Application_layer[
^],
http://en.wikipedia.org/wiki/IEEE_floating_point[
^],
http://en.wikipedia.org/wiki/Two%27s_complement[
^].
—SA