wps4r - cannot see and test uploaded R script

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

wps4r - cannot see and test uploaded R script

Jiri Kadlec
I have set up 52North WPS 3.3.1 on my server. I have also installed R and RServe, I have enabled the "R Local Algorithms Repository", and when I use the test client the R demo process R_echo.xml works and returns valid output. Now I'm trying to upload and run my own R script. Here is what I did:
I've written a simple R script:

# wps.des: jiri2, title = jiri2, abstract = jiri-abstract;
# wps.in: input, integer;
# wps.out: output, double;
# calculate something...
output = sin(input)

Then I save the script as jiri-example-4.R and I log-in in to the WPS Web Admin and use the Upload R Script button to upload my script. Then I do "Save and Activate Configuration" and "Load Active Configuration" and I can see my process under the identifier org.n52.wps.server.r.jiri-example-4 in the GetCapabilities output. However I don't see my process in the "WPS TestClient" on localhost:8080/wps/test.html. How do I configure my WPS Test Client to see my new R process in the "Request Examples:" drop-down?

Reply | Threaded
Open this post in threaded view
|

Re: wps4r - cannot see and test uploaded R script

Daniel
Am 07/07/2015 um 02:17 schrieb Jiri Kadlec:

> I have set up 52North WPS 3.3.1 on my server. I have also installed R and
> RServe, I have enabled the "R Local Algorithms Repository", and when I use
> the test client the R demo process R_echo.xml works and returns valid
> output. Now I'm trying to upload and run my own R script. Here is what I
> did:
> I've written a simple R script:
>
> # wps.des: jiri2, title = jiri2, abstract = jiri-abstract;
> # wps.in: input, integer;
> # wps.out: output, double;
> # calculate something...
> output = sin(input)
>
> Then I save the script as jiri-example-4.R and I log-in in to the WPS Web
> Admin and use the Upload R Script button to upload my script. Then I do
> "Save and Activate Configuration" and "Load Active Configuration" and I can
> see my process under the identifier org.n52.wps.server.r.jiri-example-4 in
> the GetCapabilities output.

Good.

> However I don't see my process in the "WPS
> TestClient" on localhost:8080/wps/test.html. How do I configure my WPS Test
> Client to see my new R process in the "Request Examples:" drop-down?

To add it to the test client drop down, you have

* create an XML Execute request and save it in the directory
52n-wps-webapp/src/main/webapp/requests/ [1]
* add the name of the file to the array of available requests in
text.html, e.g. after line 159 [2]

Hope this helps!

/Daniel


[1]
https://github.com/52North/WPS/tree/dev/52n-wps-webapp/src/main/webapp/requests
[2]
https://github.com/52North/WPS/blob/dev/52n-wps-webapp/src/main/webapp/test.html#L159

--
Daniel Nüst
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany
E-Mail: [hidden email]
Fon: +49-(0)-251–396371-36
Fax: +49-(0)-251–396371-11

http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
Geoprocessingservices mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/geoprocessingservices
http://geoprocessing.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines