Script-based method for implementing service configuration

The invention relates to a script-based method for implementing service configuration, comprising the following steps: carrying out grammatical definition on scripts; analyzing the scripts; analyzing service configuration data; firstly analyzing requirement documents for each service configuration and allocating fixed service configuration command codes; and compiling the script definition files describing the service configuration. Analysis of the scripts refers to reading the script definition files corresponding to the service configuration and writing the scripts in line with the grammatical definition into corresponding objects in an internal memory, the analysis is terminated if scripts not in line with the grammatical definition appear; analysis of the service configuration data requires the following steps: analyzing byte stream data acquired from the device into service configuration item data according to the definitions of the service configuration scripts and carrying out accuracy verification on the service configuration item data. The method in the invention is based on XML (extensive makeup language) script language and defines the service configurations by descriptions, thus simplifying complexity in implementing service configurations and ensuring accuracy in service configurations.