Use the following SOAP API calls to deploy your Apex to a development or sandbox organization:
- compileAndTest()
- compileClasses()
- compileTriggers()
All these calls take Apex code that contains the class or trigger, as well as the
values for any fields that need to be set.