I am changing the question as it appears to be vague.
I have an interface that forces implementation of n methods. Each method takes different arguments. I use 2 implementations, one in the DMZ and one in my application server. Call them Communicator and Handler, one sends it and the other implements it.
The interface is injected depending on the environment or application they run in. I basically want to pass the arguments over the wire so I can invoke the method exactly as it was called on the DMZ side.
How can I consistently, regardless of the method being called, serialize all of the arguments and pass them over the wire to be invoked in the environment where I can actually exectute them?