If you use BlazeDS, then take a look at BlazeMonster, a little app that generates Flex code to consume BlazeDS Remoting services, and also generates configuration files to expose Java classes as Remoting services. BlazeMonster was built by fellow Adobe evangelist Sujit Reddy G.