Integrated client code generation at runtime