Web service encapsulation method and system for ocean numerical modeling regional ocean modeling system (ROMS)

The invention discloses a Web service encapsulation method for an ocean numerical modeling calculating system regional ocean modeling system (ROMS). The method comprises the following steps: receiving information related to a task through a Web service interface; extracting useful information by using a script generator according to the received information related to the task and generating a job script file; submitting the generated job script file to a calculating cluster system, so that the calculating cluster system can call the ocean numerical modeling calculating system ROMS according to the job script file to execute the corresponding job. Correspondingly, the invention also provides a Web service encapsulation system for the ocean numerical modeling calculating system ROMS. By adoption of the Web service encapsulation method and the Web service encapsulation system, the task submission difficulty can be reduced and the work efficiency can be improved.