-- GeraldFenoy - 01 Jul 2011

WPSBakeOffTestings

This page propose a simple but efficient way to run XML validation against OGC schemas.

GetCapabilities

KVP Request using GET HTTP Method

(ref A.4.2.1)
  • Run various similar basic GetCapabilities requests, run diff then validate them:
curl -O outputGC1.xml <WPSInstance>?request=GetCapabilities&service=WPS

curl -O outputGC2.xml <WPSInstance>?REQUEST=getcapabilities&SERVICE=wps

diff -ru outputGC1.xml outputGC2.xml

xmllint --noout --schema http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd outputGC1.xml

xmllint --noout --schema http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd outputGC2.xml

XML Request using HTTP POST Method

(ref A.4.2.2)
  • Download then validate the XML GetCapabilities XML request using the following command:
curl -O http://schemas.opengis.net/wps/1.0.0/examples/10_wpsGetCapabilities_request.xml

xmllint --noout --schema http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_request.xsd 10_wpsGetCapabilities_request.xml curl -o outputGCP1.xml -H "Content-Type: text/xml" -d @10_wpsGetCapabilities_request.xml http://schemas.opengis.net/wps/1.0.0/examples/10_wpsGetCapabilities_request.xml

xmllint --noout --schema http://schemas.opengis.net/wps/1.0.0/wpsGetCapabilities_response.xsd outputGCP1.xml

DescribeProcess

KVP Request using GET HTTP Method

(ref A.4.3.1) curl -O outputDP1.xml <WPSInstance>?request=DescribeProcess&service=WPS&version=1.0.0&Identifier=ALL

curl -O outputDP2.xml <WPSInstance>?request=DescribeProcess&service=WPS&version=1.0.0&Identifier=Buffer

curl -O outputDP3.xml <WPSInstance>?request=DescribeProcess&service=WPS&version=1.0.0&Identifier=BUFFER

xmllint --noout --schema http://schemas.opengis.net/wps/1.0.0/wpsDescribeProcess_response.xsd outputDP1.xml

xmllint --noout --schema http://schemas.opengis.net/wps/1.0.0/wpsDescribeProcess_response.xsd outputDP2.xml

xmllint --noout --schema http://schemas.opengis.net/wps/1.0.0/wpsDescribeProcess_response.xsd outputDP3.xml

XML Request using HTTP POST Method

  • Download then validate the XML GetCapabilities XML request using the following command:
curl -O test_dp1.xml

curl -H "Content-Type: text/xml" -d @test_dp1.xml http://zoo-project.org/wps-foss4g2011/zoo_loader.cgi

References :

Apendix A of the WPS 1.0.0 specifications : http://www.opengeospatial.org/standards/wps
Topic revision: r1 - 01 Jul 2011, GeraldFenoy
This site is powered by FoswikiThe information you supply is used for OGC purposes only. We will never pass your contact details to any third party without your prior consent.
If you enter content here you are agreeing to the OGC privacy policy.

Copyright &© by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding OGC Public Wiki? Send feedback