Check out the xml-rpc package in CVS. It uses the xml abstraction procedures in acs-tcl/tcl/30-xml-util-procs.tcl.
It implements xml-rpc server and client.