BACKGROUND

1. Technical Field

Present invention embodiments relate to a web service that learns interactions with an interactive interface application as the interactions are encountered in order to validate later interactions.

2. Discussion of the Related Art

Today, software is delivered to a wider and more dispersed user base via a cloud. The software can be run remotely by calling a RESTful web service. If a software application requires user interaction, the RESTful web service can remotely run the software application provided that the RESTful web service knows the required interactions for running particular tasks using the software application.

SUMMARY

According to one embodiment of the present invention, a computer-implemented method is provided for a web service to interface with a command line interface application. The web service, executing on a computing device, learns each of multiple commands and any respective parameters associated therewith for the command line interface application based on the web service providing the respective command and the any respective parameters associated therewith to the command line interface application. The web service validates a command and each corresponding parameter received for the command line interface application based on the learned commands and respective parameters and provides the validated command and the each validated parameter to the command line interface application. Each of the validated parameters are provided in response to the web service receiving from the command line interface application respective indications for more input. The web service provides a successful indication to an originator of the command in response to receiving a successful indication from the command line interface application.

According to a second embodiment of the present invention, a system is provided for executing a web service to interface with a command line interface application. The system includes at least one processor and a memory connected to the at least one processor. The at least one processor is configured such that the web service executing on the at least one processor learns each of multiple commands and any respective parameters associated therewith for the command line interface application based on the web service providing the respective command and the any respective parameters associated therewith to the command line interface application. The web service validates a command and each corresponding parameter received for the command line interface application based on the learned commands and respective parameters and provides the validated command and the each validated parameter to the command line interface application. The each validated parameter is provided to the command line interface application in response to the web service receiving from the command line interface application respective indications for more input. The web service provides a successful indication to an originator of the new input in response to receiving a successful indication from the command line interface application.

According to a third embodiment of the present invention, a computer program product including at least one computer readable storage medium having computer readable program code embodied therewith is provided for execution on at least one processor of a computing device. The computer readable computer code is configured to be executed as a web service by the at least one processor. The web service learns each of multiple commands and any respective parameters associated therewith for a command line interface application based on the as the web service providing the respective command and the any respective parameters associated therewith to the command line interface application. The web service validates a command and each corresponding parameter based on the learned commands and respective parameters and provides the validated command and the each validated parameter to the command line interface application. Each of the validated parameters is provided in response to the web service receiving from the command line interface application respective indications for more input. The web service provides a successful indication to an originator of the command in response to receiving a successful indication from the command line interface application.

