in reply to creating a state machine

I've had good results using Frontier::RPC2 clients and servers, an XML RPC implementation for perl.