You are viewing the RapidMiner Server documentation for version 9.0 -Check here for latest version
RapidMiner Server Web Services
This section describes how to expose a RapidMiner Server process as a web service which can be called from either the QlikView or QlikSense application environment. RapidMiner web services can be either parameterless or can accept parameters as part of the URL query. Both Qlik applications support each of these types and therefore both parameterless and parameterized web services will be covered in this guide.
Create a web service
To create a web service navigate to theProcessesmenu on the left side of the RapidMiner Server web interface:
Select theServiceitem on the menu. This will navigate you to the services interface which lists the already configured web services and displays theCreate new servicelink:
After clicking this link you will be directed to theEdit Serviceinterface:
Configure the web service as follows:
- Navigate through the repository to the location where the process is stored and select it asData source.
- SelectTableas theOutput format.
- Leave theCache inputoption unchecked.
- If needed you can configure web service parameters using theParameter bindingactions
- Settext/htmlasMIME Type
- Click onSubmitbutton to save the service.
Once theSubmitbutton is clicked you will be directed back to the main services interface where the newly created service will be listed:
To view the URL endpoint of the service click on the cogwheel icon which will bring you to the测试服务interface. There on the right side of the page the URL is displayed as a direct link:
Copy this link as you will need it to setup the service in the Qlik Desktop application of your choice.
Add parameters to a service
To fully leverage the Qlik and RapidMiner server integration it is possible to parameterize the web service and call it with different sets of parameters from the Qlik environment. To that end, a RapidMiner Server web service needs to be configured so as to accept these parameters.
Navigate from theServicesinterface to theEdit Serviceeither bycreating a new serviceor by editing an existing one by clicking the notepad icon :
Click theAdd macro bindinglink which will add a new parameter with three values to set:- URL query parameter: the name of the parameter in the URL
- Target (macro/operator parameter): the name of the macro in the RapidMiner process
- Mandatory: whether this parameter is mandatory or optional
When all parameters have been set click on the submit button to save the changes: