Not that trivial. xml-rpc cannot, among other things, accept user-defined objects. It can do the primitive types, String, and arrays. And you would need to write your own serializer and a way to create and decipher SOAP envelopes. Hence a need for some general library.
T