For a non-Flex project that needs to communicate with a web service, you need two files from the Flex framework: rpc.swc and framework.swc.
You just add the SWCs to your project the same way you would any other SWCs. No MXML, no hacking necessary. I've used them in Flash CS projects and FlashDevelop AS3 projects.