Execute HTTP POST request XML encoding mandatory

42 Copyright © 2007 Open Geospatial Consortium, Inc. All Rights Reserved. In all other cases, the response to a valid Execute operation request is an ExecuteResponse XML document. The contents of this ExecuteResponse document depend upon the value of the ExecuteResponseFormResponseDocument element, as follows. If storeExecuteResponse is ―true‖ see Table 50, then the execute response document shall be stored at a web accessible URL. The executeResponseLocation attribute in the execute response becomes mandatory, which will point to the location where the Response Document is stored. The service shall respond immediately to the request by  storing the ResponseDocument at a web accessible URL, as well as  returning the ResponseDocument containing the executeResponseLocation to the client. The status element which has five possible subelements choice:ProcessAccepted, ProcessStarted, ProcessPaused, ProcessFailed and ProcessSucceeded, which are chosen and populated as follows: 1. If the process is completed when the initial executeResponseDocument is returned, the element ProcessSucceeded is populated with the process results. 2. If the process already failed when the initial executeResponseDocument is returned, the element ProcessFailed is populated with the Exception. 3. If the process has been paused when the initial executeResponseDocument is returned, the element ProcessPaused is populated. 4. If the process has been accepted when the initial executeResponseDocument is returned, the element ProcessAccepted is populated, including percentage information. 5. If the process execution is ongoing when the initial executeResponseDocument is returned, the element ProcessStarted is populated. In case 3, 4, and 5, if status updating is requested, updates are made to the executeResponseDocument at the executeResponseLocation until either the process completes successfully or it fails. Regardless, once the process completes successfully, the ProcessSucceeded element is populated, and if it fails, the ProcessFailed element is populated. If lineage is ―true‖ see Table 50, the Execute operation response shall include the DataInputs and OutputDefinitions elements. The server shall include in the execute response a complete copy of the DataInputs and OutputDefinition elements as received in the execute request. If lineage is false then these elements shall be omitted from the response.