AnsweredAssumed Answered

How to send ZIP to WPS

Question asked by dusan.cibulka on Jul 18, 2016

Hello, my question is:

It is possible to send ZIP files through a OGC WPS interface within "Execute" request?

If so, how it should be structured request for data type "GPDataFile" or "<MimeType>application/zip</MimeType>" in the WPS.

 

It is posible to use Base64?

Example:

 

<wps:Execute xmlns:wps="http://www.opengis.net/wps/1.0.0" service="WPS" version="1.0.0" language="en-US">

    <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">convert</ows:Identifier>

    <wps:DataInputs>

        <wps:Input>

            <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">InputData</ows:Identifier>

            <wps:Data>

                <wps:ComplexData mimeType="application/zip" encoding="Base64">

                    <![CDATA[UEsDBBQAAAAAAK187Eji3LKKBQAAAAUAAAAIAAAAdGVzdC50eHR0ZXN0MVBLAQIUABQAAAAAAK187Eji3LKKBQAAAAUAAAAIAAAAAAAAAAEAIAAAAAAAAAB0ZXN0LnR4dFBLBQYAAAAAAQABADYAAAArAAAAAAA=]]>

                </wps:ComplexData>

            </wps:Data>

        </wps:Input>

    </wps:DataInputs>

    <wps:ResponseForm>

        <wps:ResponseDocument storeExecuteResponse="true" lineage="true" status="false">

            <wps:Output schema="http://www.w3.org/TR/xmlschema-2/#string" asReference="false">

                <ows:Identifier xmlns:ows="http://www.opengis.net/ows/1.1">OutputData</ows:Identifier>

            </wps:Output>

        </wps:ResponseDocument>

    </wps:ResponseForm>

</wps:Execute>

 

 

Thank you

Outcomes