1. A computer-implemented method for generating extensible markup language (XML) script that comprises first and second simple object access protocol (SOAP) commands, comprising: receiving code that defines a function and the first and second SOAP commands; and translating the code to XML script that performs the function and that contains the first and second SOAP commands, the XML script declaring a variable that is used in the first SOAP command, the first SOAP command passing a value of the variable out of the first SOAP command to the function, and the function using the value of the variable to affect execution of the second SOAP command; wherein the function comprises a conditional statement comprising an If-Then statement or an If-Then-Else statement; and wherein the function comprises a control statement comprising a loop.