1

I'm implementing some java process into Geoserver OGC-WPS standard. I start with the following simplest code:

package org.geoserver.wps.nais;

import org.geoserver.wps.gs.GeoServerProcess;
import org.geotools.process.factory.DescribeParameter; 
import org.geotools.process.factory.DescribeProcess; 
import org.geotools.process.factory.DescribeResult; 

@DescribeProcess(title = "helloWPS", description = "Hello WPS Sample")

public class HelloWPS implements GeoServerProcess {
    @DescribeResult(name = "result", description = "output result")
    public String execute( @DescribeParameter(name = "Hello!!", description = "Hello, ... ", )  final String nome )
    {
        return nome;
    }
}

It returns a String. I need to receive a xml response document.

Anyone know how to modify the code?

Anders R. Bystrup
  • 15,729
  • 10
  • 59
  • 55
Lorenzo NAIS
  • 61
  • 1
  • 8
  • Are you sure that this String is not just xml? – Divers May 21 '15 at 13:30
  • i'm sure. I need to "store" the output into an xml file. The execute xml file generated by the code is: result – Lorenzo NAIS May 21 '15 at 14:01
  • Yes, i am. the xml execute is : – Lorenzo NAIS May 21 '15 at 14:04
  • i'm sure. I need to "store" the output into an xml file. The execute xml file generated by the code is: result i nedd an execute file like: HelloWPS Title – Lorenzo NAIS May 21 '15 at 14:08
  • And it text formatted in xml format. What is your issue? – Divers May 21 '15 at 15:49
  • The second xml code is not mine. I found it on a git-hub repository. My issue is how make a java that produce a jar to obtain an execute process like the second one. I set the describeResult, the describeparameter, how use properly the class and the methods. – Lorenzo NAIS May 22 '15 at 07:42

0 Answers0