[Geoserver-users] Asynchronous WPS in GeoServer

Hello.

I successfully made synchronous WPS that executes my processing but it takes about 10 minutes. I want to resolve my problem using asynchronous processing. Can somebody help me with examples of asynchronous WPS?


Best regards,
Vitaliy Eremenko.

Hey, if you still have this problem.

The solution is to specify the main process's output to:

<wps:ResponseForm>
    
<wps:ResponseDocument storeExecuteResponse="true" status="true"
lineage="false">
        
<wps:Output>
            
<ows:Identifier>
result
</ows:Identifier>
        
</wps:Output>
    
</wps:ResponseDocument>
</wps:ResponseForm>

This will return the "status" in form of:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<wps:ExecuteResponse xmlns:wps="http://www.opengis.net/wps/1.0.0&quot;
xmlns:ows="http://www.opengis.net/ows/1.1&quot;
xmlns:xlink="http://www.w3.org/1999/xlink&quot; service="WPS"
serviceInstance="http://localhost:9090/geoserver/ows?&quot;
statusLocation="http://localhost:9090/geoserver/ows?service=WPS&amp;version=1.0.0&amp;request=GetExecutionStatus&amp;executionId=0877ac2a-5fbf-480f-9d4a-a8b8db4bab6b&quot;
version="1.0.0" xml:lang="en">
    
<wps:Process wps:processVersion="1.0.0">
        
<ows:Identifier>
JTS:buffer
</ows:Identifier>
        
<ows:Title>
Buffer
</ows:Title>
        
<ows:Abstract>
Returns a polygonal geometry representing the input geometry enlarged by a
given distance around its exterior.
</ows:Abstract>
    
</wps:Process>
    
<wps:Status creationTime="...">
        
<wps:ProcessAccepted>
Process accepted.
</wps:ProcessAccepted>
    
</wps:Status>
</wps:ExecuteResponse>

Then you keep on checking the "statusLocation" until you get the results.

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Asynchronous-WPS-in-GeoServer-tp5201190p5203935.html
Sent from the GeoServer - User mailing list archive at Nabble.com.