<div dir="ltr">Guys, again: this all makes sense to me. @Jan: the proposal of attributes looks good for now, this is research, we shall see, what we shall need. I assume, this is the minium we need for now<div><br></div><div>thanks</div><div><br></div><div>J</div></div><br><div class="gmail_quote"><div dir="ltr">pá 17. 6. 2016 v 15:49 odesílatel Jan Rudolf <<a href="mailto:rudolja1@fit.cvut.cz">rudolja1@fit.cvut.cz</a>> napsal:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">OK, so I am going to implement JSON responses for the new URL API for<br>
now, it's also easier for me.<br>
<br>
What information do you want to see in this response?<br>
<br>
My guess:<br>
1) an identifier<br>
2) time<br>
3) the uuid<br>
4) a message like status: "paused/killed/resumed"<br>
<br>
Jan<br>
<br>
On 2016-06-17 15:19, Jonas Eberle wrote:<br>
> Hi all,<br>
><br>
> I would recommend not to mix responses based on OGC WPS (equal to<br>
> XML-based responses) with requests that are not in line with "typical"<br>
> WPS requests.<br>
><br>
> I would assume the following:<br>
> 1) If the request is something like<br>
> /wps?service=WPS&request=Pause&jobid=<process_id> (this is a typical<br>
> WPS request) the response should be XML-based along with or based on<br>
> the XML defined by the WPS specification.<br>
> 2) If the request is something like /processes/pause/<process_id> (not<br>
> defined at all by OGC) the response, in my opinion, should be<br>
> JSON-based (because this is easier for every programming language!)<br>
><br>
> The first is OGC-like, the second is completely different from any OGC<br>
> specification.<br>
><br>
> Furthermore: Is it "good pratice" to include elements, such as<br>
> "wps:ProcessPaused", that are not in line with the XML schema of the<br>
> WPS specification?<br>
><br>
> Cheers,<br>
> Jonas<br>
><br>
> ----- Am 17. Jun 2016 um 14:50 schrieb Jan Rudolf<br>
> <<a href="mailto:rudolja1@fit.cvut.cz" target="_blank">rudolja1@fit.cvut.cz</a>>:<br>
><br>
>> Hi,<br>
>><br>
>> I've implemented pause/resume/kill into PyWPS in a form, that you<br>
>> make<br>
>> HTTP request with /processes/pause/<process_id>, the process is<br>
>> paused<br>
>> and you will get just text response "<process_id> is paused". I<br>
>> think,<br>
>> that Jachym said, you want the response in an XML form like:<br>
>><br>
>> <wps:ExecuteResponse ...><br>
>> <wps:Process wps:processVersion="None"><br>
>> <ows:Identifier>sleep</ows:Identifier><br>
>> <ows:Title>Sleep Process</ows:Title><br>
>> <ows:Abstract>This process will sleep for a given delay or 10<br>
>> seconds if not a valid value</ows:Abstract><br>
>> </wps:Process><br>
>> <wps:Status creationTime="2016-06-16T22:13:25Z"><br>
>> <wps:ProcessAccepted>PyWPS Process sleep<br>
>> accepted</wps:ProcessAccepted><br>
>> </wps:Status><br>
>> </wps:ExecuteResponse><br>
>><br>
>> so for paused/killed/resumed processes is going to be similar<br>
>> response<br>
>> only with different status? <wps:ProcessPaused>PyWPS Process sleep<br>
>> paused</wps:ProcessPaused> for example.<br>
>><br>
>> Thanks, Jan<br>
>> _______________________________________________<br>
>> pywps-dev mailing list<br>
>> <a href="mailto:pywps-dev@lists.osgeo.org" target="_blank">pywps-dev@lists.osgeo.org</a><br>
>> <a href="http://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a><br>
_______________________________________________<br>
pywps-dev mailing list<br>
<a href="mailto:pywps-dev@lists.osgeo.org" target="_blank">pywps-dev@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/pywps-dev" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/pywps-dev</a></blockquote></div>