How to send object references between systems using RFC
I have a question regarding sending object references between systems. I have an RFC enabled function module which reads instances of a class in its source code, now I want to send these instances to the caller system using the exporting parameters of my RFC enabled function module. I guess I must serialize the objects and send them in form of an XML stream, and then deserialize in the caller system, but I do not have a concrete example how I can do that. Has anyone an idea or source code samples how it is done?
Thanks in advance,