Foreign citizens who enter China may work within Chinese territory only after obtaining the work permit, as well as the residence permit for foreigners.
Foreigners who are exempted from work permit requirement due to special circumstances will need to provide other certifications.
Learn how to apply for a foreigners' work permit in Beijing.
Consult the application materials here, which will differ according to the foreign applicant's identity.