[CITE-Forum] [SPS 2.0] CITE scripts patches

Henning Bredel h.bredel at 52north.org
Fri Jun 1 12:54:10 EDT 2012


I had a quick look at the SPS 2.0 test scripts and did some fixes (at 
least in my understanding). My fixes are based on tagged version r1.

Some further notes:
  - sps:core-SPS.DescribeTasking-RequestNoService.1
   => missing service attribute leads to an InvalidParameterException as 
the attribute is mandatory (script is testing MissingParameterValue)
  - sps:core-SPS.DescribeTasking-RequestNoVersion.1
   => same here
  - sps:core-SPS.DescribeTasking-RequestNoProcedure.1
   => same here

That's for now---I will be on vacation the next two weeks so there will 
be no updates on this from my side. Anyway, I hope this helps a bit.

Best

   Henning

-- 
Henning Bredel
52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster
Fon: +49-(0)-251–396371-34
Fax: +49-(0)-251–396371-11
email: h.bredel at 52North.org
52North-site: http://www.52north.org
General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
-------------- next part --------------
--- D:/data/testing/ogc-team/sps/2.0_r1/ctl/OWS.xml	Fri Jun 01 18:18:05 2012
+++ D:/data/testing/ogc-team/sps/2.0/ctl/OWS.xml	Fri Jun 01 17:00:39 2012
@@ -77,12 +77,13 @@
             <ctl:message>Executing a valid GetCapabilities request...</ctl:message>
 			<xsl:variable name="request1">
 				<xsl:if test="$PostEncodingIsSOAP=string('true')">
+					<ctl:message>Executing a valid GetCapabilities request... (SOAP)</ctl:message>
 					<ctl:soap-request version="1.2" charset="UTF-8">
 						<ctl:url>
 							<xsl:value-of select="$serviceURL"/>
 						</ctl:url>
 						<ctl:body>
-							<sps:GetCapabilities Service="SPS" Version="2.0.0"
+							<sps:GetCapabilities service="SPS"
 								xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 								xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 								xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -127,7 +129,7 @@
 							</ctl:url>
 							<ctl:method>post</ctl:method>
 							<ctl:body>
-								<sps:GetCapabilities  service="SPS" version="2.0.0"
+								<sps:GetCapabilities  service="SPS"
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -339,7 +341,7 @@
 							<xsl:value-of select="$serviceURL"/>
 						</ctl:url>
 						<ctl:body>
-							<sps:GetCapabilities Service="SPS" Version="2.0.0"
+							<sps:GetCapabilities service="SPS"
 								xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 								xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 								xmlns:sps="http://www.opengis.net/sps/2.0" 
-------------- next part --------------
--- D:/data/testing/ogc-team/sps/2.0_r1/ctl/SPSETS.xml	Fri Jun 01 18:18:05 2012
+++ D:/data/testing/ogc-team/sps/2.0/ctl/SPSETS.xml	Fri Jun 01 17:39:16 2012
@@ -113,7 +113,7 @@
 						</ctl:url>
 						<ctl:method>post</ctl:method>
 						<ctl:body>
-							<sps:GetCapabilities Service="SPS" Version="2.0.0"
+							<sps:GetCapabilities service="SPS" 
 								xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 								xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 								xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -127,7 +127,7 @@
 							<xsl:value-of select="$sps.service.get.url"/>
 						</ctl:url> 
 						<ctl:body>
-							<sps:GetCapabilities Service="SPS" Version="2.0.0"
+							<sps:GetCapabilities service="SPS"
 								xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 								xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 								xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -355,7 +355,7 @@
 								<xsl:value-of select="$serviceURL"/>
 							</ctl:url>
 							<ctl:body>
-								<sps:GetCapabilities service="SPS" version="2.0.0"
+								<sps:GetCapabilities service="SPS"
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -383,7 +383,7 @@
 							</ctl:url>
 							<ctl:method>post</ctl:method>
 							<ctl:body>
-								<sps:GetCapabilities service="SPS" version="2.0.0"
+								<sps:GetCapabilities service="SPS"
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -540,22 +540,6 @@
 						<ctl:with-param name="serviceURL" select="$serviceURL" />
 						<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
 					</ctl:call-test>
-					<!-- 0.4. request no Version 
-					<ctl:call-test name="sps:core-SPS.GetCapabilities-PostRequestNoVersion.1">
-						<ctl:with-param name="serviceURL" select="$serviceURL" />
-						<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
-					</ctl:call-test>
-					-->
-					<!-- 0.5. request null Version -->
-					<ctl:call-test name="sps:core-SPS.GetCapabilities-PostRequestNullVersion.1">
-						<ctl:with-param name="serviceURL" select="$serviceURL" />
-						<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
-					</ctl:call-test>
-					<!-- 0.6. request invalid Version -->
-					<ctl:call-test name="sps:core-SPS.GetCapabilities-PostRequestInvalidVersion.1">
-						<ctl:with-param name="serviceURL" select="$serviceURL" />
-						<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
-					</ctl:call-test>
 					<!-- 1.	  request normal -->
 					<ctl:call-test name="sps:core-SPS.GetCapabilities-PostRequestNormal">
 						<ctl:with-param name="serviceURL" select="$serviceURL" />
@@ -633,7 +617,7 @@
 								<xsl:value-of select="$serviceURL"/>
 							</ctl:url>
 							<ctl:body>
-								<sps:GetCapabilities service="$invalidServiceParameterValue" version="2.0.0"
+								<sps:GetCapabilities service="$invalidServiceParameterValue" 
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -661,7 +645,7 @@
 								</ctl:url>
 								<ctl:method>post</ctl:method>
 								<ctl:body>
-									<sps:GetCapabilities service="$invalidServiceParameterValue" version="2.0.0"
+									<sps:GetCapabilities service="$invalidServiceParameterValue"
 										xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 										xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 										xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -696,7 +680,7 @@
 						</xsl:variable>
 						<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
 						<xsl:if test="not(xsd:boolean($isCorrect))">
-							<ctl:message>FAILURE:  The response to a GetCapabilities request with an invalid service parameter (<xsl:value-of select="$invalidServiceParameterValue" />) does not match the expected response.  The response was expected to be an ExceptionReport with an exceptionCode of "InvalidParameterValue" and a locator value of "SERVICE".</ctl:message>
+							<ctl:message>FAILURE:  The response to a GetCapabilities request with an invalid service parameter (<xsl:value-of select="$invalidServiceParameterValue" />) does not match the expected response.  The response was expected to be an ExceptionReport with an exceptionCode of "InvalidParameterValue" and a locator value of "service".</ctl:message>
 							<ctl:fail />
 						</xsl:if>
 					</xsl:otherwise>
@@ -1149,85 +1133,11 @@
 				</xsl:for-each>
 			</ctl:code>
 		</ctl:test>
-
-		<ctl:test name="sps:core-SPS.GetCapabilities-PostRequestNoService.1"><!-- no use -->
-			<ctl:param name="serviceURL" />
-			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>Send a request without parameter "Service",and the response must be a valid exception with code "MissingParameterValue" and locator "Service". </ctl:assertion>
-			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "MissingParameterValue" and locator is "Service"; fail otherwise.</ctl:comment>
-			<ctl:link title=""></ctl:link>
-			<ctl:code>
-				<xsl:variable name="getCapabilitiesResponse">
-					<xsl:if test="$PostEncodingIsSOAP=string('true')">
-						<ctl:soap-request version="1.2" charset="UTF-8">
-							<ctl:url>
-								<xsl:value-of select="$serviceURL"/>
-							</ctl:url> 
-							<ctl:method>post</ctl:method>
-							<ctl:body>
-								<sps:GetCapabilities
-									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
-									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
-									xmlns:sps="http://www.opengis.net/sps/2.0" 
-									xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></sps:GetCapabilities>
-							</ctl:body>
-							<ctl:call-function name="spsFunctions:validateExceptionReportSOAP" />
-						</ctl:soap-request>
-					</xsl:if>
-					<xsl:if test="not($PostEncodingIsSOAP=string('true'))">
-						<ctl:request>
-							<ctl:url>
-								<xsl:value-of select="$serviceURL" />
-							</ctl:url>
-							<ctl:method>post</ctl:method>
-							<ctl:body>
-								<sps:GetCapabilities
-									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
-									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
-									xmlns:sps="http://www.opengis.net/sps/2.0" 
-									xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></sps:GetCapabilities>
-							</ctl:body>
-							<ctl:call-function name="spsFunctions:validateExceptionReport" />
-						</ctl:request>
-					</xsl:if>
-				</xsl:variable>
-				<xsl:choose>
-					<xsl:when test="not($getCapabilitiesResponse/*)">
-						<ctl:message>FAILURE:  The server did not return a response, or the response was not valid according to the GetCapabilities response schema for "SPS" />.</ctl:message>
-						<ctl:fail/>
-					</xsl:when>
-					<xsl:otherwise>
-						<xsl:if test="$getCapabilitiesResponse/*">
-							<xsl:if test="$PostEncodingIsSOAP=string('true')">
-								<ctl:message>The response was:  <xsl:value-of select="spsFunctions:getExceptionInfoSOAP($getCapabilitiesResponse)" /></ctl:message>
-							</xsl:if>
-							<xsl:if test="not($PostEncodingIsSOAP=string('true'))">
-								<ctl:message>The response was:  <xsl:value-of select="spsFunctions:getExceptionInfo($getCapabilitiesResponse)" /></ctl:message>
-							</xsl:if>
-							<ctl:message>Checking the validity of the response to a GetCapabilities request with no Service parameter.</ctl:message>
-							<xsl:variable name="isCorrect">
-								<ctl:call-function name="spsFunctions:checkExceptionReport">
-									<ctl:with-param name="exceptionReport" select="$getCapabilitiesResponse" />
-									<ctl:with-param name="exceptionCodeToCheck" select="string('MissingParameterValue')" />
-									<ctl:with-param name="locatorToCheck" select="string('Service')" />
-									<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
-								</ctl:call-function>
-							</xsl:variable>
-							<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
-							<xsl:if test="not(xsd:boolean($isCorrect))">
-								<ctl:message>FAILURE:  The server did not return the expected exception report response to a GetCapabilities request with no Service parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "MissingParameterValue" and a locator of "Service".</ctl:message>
-								<ctl:fail />
-							</xsl:if>
-						</xsl:if>
-					</xsl:otherwise>
-				</xsl:choose>
-			</ctl:code>
-		</ctl:test>
 		<ctl:test name="sps:core-SPS.GetCapabilities-PostRequestNullService.1">
 			<ctl:param name="serviceURL" />
 			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>Send a request with null parameter "Service",and the response must be a valid exception with code "InvalidParameterValue" and locator "Service". </ctl:assertion>
-			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "InvalidParameterValue" and locator is "Service"; fail otherwise.</ctl:comment>
+			<ctl:assertion>Send a request with null parameter "service", and the response must be a valid exception with code "InvalidParameterValue" and locator "service". </ctl:assertion>
+			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "InvalidParameterValue" and locator is "service"; fail otherwise.</ctl:comment>
 			<ctl:link title=""></ctl:link>
 			<ctl:code>
 				<xsl:variable name="getCapabilitiesResponse">
@@ -1238,7 +1148,7 @@
 							</ctl:url> 
 							<ctl:method>post</ctl:method>
 							<ctl:body>
-								<sps:GetCapabilities Service=""
+								<sps:GetCapabilities service=""
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -1254,7 +1164,7 @@
 							</ctl:url>
 							<ctl:method>post</ctl:method>
 							<ctl:body>
-								<sps:GetCapabilities Service=""
+								<sps:GetCapabilities service=""
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -1288,7 +1198,7 @@
 							</xsl:variable>
 							<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
 							<xsl:if test="not(xsd:boolean($isCorrect))">
-								<ctl:message>FAILURE:  The server did not return the expected exception report response to a GetCapabilities request with null Service parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "InvalidParameterValue" and a locator of "Service".</ctl:message>
+								<ctl:message>FAILURE:  The server did not return the expected exception report response to a GetCapabilities request with null Service parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "InvalidParameterValue" and a locator of "service".</ctl:message>
 								<ctl:fail />
 							</xsl:if>
 						</xsl:if>
@@ -1299,8 +1209,8 @@
 		<ctl:test name="sps:core-SPS.GetCapabilities-PostRequestInvalidService.1">
 			<ctl:param name="serviceURL" />
 			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>Send a request with invalid parameter "Service",and the response must be a valid exception with code "InvalidParameterValue" and locator "procedure". </ctl:assertion>
-			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "InvalidParameterValue" and locator is "Service"; fail otherwise.</ctl:comment>
+			<ctl:assertion>Send a request with invalid parameter "service",and the response must be a valid exception with code "InvalidParameterValue" and locator "procedure". </ctl:assertion>
+			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "InvalidParameterValue" and locator is "service"; fail otherwise.</ctl:comment>
 			<ctl:link title=""></ctl:link>
 			<ctl:code>
 				<xsl:variable name="getCapabilitiesResponse">
@@ -1311,7 +1221,7 @@
 							</ctl:url> 
 							<ctl:method>post</ctl:method>
 							<ctl:body>
-								<sps:GetCapabilities Service="999"
+								<sps:GetCapabilities service="999"
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -1327,7 +1237,7 @@
 							</ctl:url>
 							<ctl:method>post</ctl:method>
 							<ctl:body>
-								<sps:GetCapabilities Service="999"
+								<sps:GetCapabilities service="999"
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -1361,225 +1271,7 @@
 							</xsl:variable>
 							<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
 							<xsl:if test="not(xsd:boolean($isCorrect))">
-								<ctl:message>FAILURE:  The server did not return the expected exception report response to a GetCapabilities request with invalid Service parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "InvalidParameterValue" and a locator of "Service".</ctl:message>
-								<ctl:fail />
-							</xsl:if>
-						</xsl:if>
-					</xsl:otherwise>
-				</xsl:choose>
-			</ctl:code>
-		</ctl:test>
-		<ctl:test name="sps:core-SPS.GetCapabilities-PostRequestNoVersion.1"><!-- no use -->
-			<ctl:param name="serviceURL" />
-			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>Send a request without parameter "Version",and the response must be a valid exception with code "MissingParameterValue" and locator "Version". </ctl:assertion>
-			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "MissingParameterValue" and locator is "Version"; fail otherwise.</ctl:comment>
-			<ctl:link title=""></ctl:link>
-			<ctl:code>
-				<xsl:variable name="getCapabilitiesResponse">
-					<xsl:if test="$PostEncodingIsSOAP=string('true')">
-						<ctl:soap-request version="1.2" charset="UTF-8">
-							<ctl:url>
-								<xsl:value-of select="$serviceURL"/>
-							</ctl:url> 
-							<ctl:method>post</ctl:method>
-							<ctl:body>
-								<sps:GetCapabilities
-									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
-									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
-									xmlns:sps="http://www.opengis.net/sps/2.0" 
-									xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></sps:GetCapabilities>
-							</ctl:body>
-							<ctl:call-function name="spsFunctions:validateExceptionReportSOAP" />
-						</ctl:soap-request>
-					</xsl:if>
-					<xsl:if test="not($PostEncodingIsSOAP=string('true'))">
-						<ctl:request>
-							<ctl:url>
-								<xsl:value-of select="$serviceURL" />
-							</ctl:url>
-							<ctl:method>post</ctl:method>
-							<ctl:body>
-								<sps:GetCapabilities
-									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
-									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
-									xmlns:sps="http://www.opengis.net/sps/2.0" 
-									xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></sps:GetCapabilities>
-							</ctl:body>
-							<ctl:call-function name="spsFunctions:validateExceptionReport" />
-						</ctl:request>
-					</xsl:if>
-				</xsl:variable>
-				<xsl:choose>
-					<xsl:when test="not($getCapabilitiesResponse/*)">
-						<ctl:message>FAILURE:  The server did not return a response, or the response was not valid according to the GetCapabilities response schema for "SPS" />.</ctl:message>
-						<ctl:fail/>
-					</xsl:when>
-					<xsl:otherwise>
-						<xsl:if test="$getCapabilitiesResponse/*">
-							<xsl:if test="$PostEncodingIsSOAP=string('true')">
-								<ctl:message>The response was:  <xsl:value-of select="spsFunctions:getExceptionInfoSOAP($getCapabilitiesResponse)" /></ctl:message>
-							</xsl:if>
-							<xsl:if test="not($PostEncodingIsSOAP=string('true'))">
-								<ctl:message>The response was:  <xsl:value-of select="spsFunctions:getExceptionInfo($getCapabilitiesResponse)" /></ctl:message>
-							</xsl:if>
-							<ctl:message>Checking the validity of the response to a GetCapabilities request with no Version parameter.</ctl:message>
-							<xsl:variable name="isCorrect">
-								<ctl:call-function name="spsFunctions:checkExceptionReport">
-									<ctl:with-param name="exceptionReport" select="$getCapabilitiesResponse" />
-									<ctl:with-param name="exceptionCodeToCheck" select="string('MissingParameterValue')" />
-									<ctl:with-param name="locatorToCheck" select="string('Version')" />
-									<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
-								</ctl:call-function>
-							</xsl:variable>
-							<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
-							<xsl:if test="not(xsd:boolean($isCorrect))">
-								<ctl:message>FAILURE:  The server did not return the expected exception report response to a GetCapabilities request with no Version parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "MissingParameterValue" and a locator of "Version".</ctl:message>
-								<ctl:fail />
-							</xsl:if>
-						</xsl:if>
-					</xsl:otherwise>
-				</xsl:choose>
-			</ctl:code>
-		</ctl:test>
-		<ctl:test name="sps:core-SPS.GetCapabilities-PostRequestNullVersion.1">
-			<ctl:param name="serviceURL" />
-			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>Send a request with null parameter "Version",and the response must be a valid exception with code "InvalidParameterValue" and locator "Version". </ctl:assertion>
-			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "InvalidParameterValue" and locator is "Version"; fail otherwise.</ctl:comment>
-			<ctl:link title=""></ctl:link>
-			<ctl:code>
-				<xsl:variable name="getCapabilitiesResponse">
-					<xsl:if test="$PostEncodingIsSOAP=string('true')">
-						<ctl:soap-request version="1.2" charset="UTF-8">
-							<ctl:url>
-								<xsl:value-of select="$serviceURL"/>
-							</ctl:url> 
-							<ctl:method>post</ctl:method>
-							<ctl:body>
-								<sps:GetCapabilities Version=""
-									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
-									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
-									xmlns:sps="http://www.opengis.net/sps/2.0" 
-									xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></sps:GetCapabilities>
-							</ctl:body>
-							<ctl:call-function name="spsFunctions:validateExceptionReportSOAP" />
-						</ctl:soap-request>
-					</xsl:if>
-					<xsl:if test="not($PostEncodingIsSOAP=string('true'))">
-						<ctl:request>
-							<ctl:url>
-								<xsl:value-of select="$serviceURL" />
-							</ctl:url>
-							<ctl:method>post</ctl:method>
-							<ctl:body>
-								<sps:GetCapabilities Version=""
-									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
-									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
-									xmlns:sps="http://www.opengis.net/sps/2.0" 
-									xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></sps:GetCapabilities>
-							</ctl:body>
-							<ctl:call-function name="spsFunctions:validateExceptionReport" />
-						</ctl:request>
-					</xsl:if>
-				</xsl:variable>
-				<xsl:choose>
-					<xsl:when test="not($getCapabilitiesResponse/*)">
-						<ctl:message>FAILURE:  The server did not return a response, or the response was not valid according to the GetCapabilities response schema for "SPS" />.</ctl:message>
-						<ctl:fail/>
-					</xsl:when>
-					<xsl:otherwise>
-						<xsl:if test="$getCapabilitiesResponse/*">
-							<xsl:if test="$PostEncodingIsSOAP=string('true')">
-								<ctl:message>The response was:  <xsl:value-of select="spsFunctions:getExceptionInfoSOAP($getCapabilitiesResponse)" /></ctl:message>
-							</xsl:if>
-							<xsl:if test="not($PostEncodingIsSOAP=string('true'))">
-								<ctl:message>The response was:  <xsl:value-of select="spsFunctions:getExceptionInfo($getCapabilitiesResponse)" /></ctl:message>
-							</xsl:if>
-							<ctl:message>Checking the validity of the response to a GetCapabilities request with invalid Version parameter.</ctl:message>
-							<xsl:variable name="isCorrect">
-								<ctl:call-function name="spsFunctions:checkExceptionReport">
-									<ctl:with-param name="exceptionReport" select="$getCapabilitiesResponse" />
-									<ctl:with-param name="exceptionCodeToCheck" select="string('InvalidParameterValue')" />
-									<ctl:with-param name="locatorToCheck" select="string('Version')" />
-									<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
-								</ctl:call-function>
-							</xsl:variable>
-							<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
-							<xsl:if test="not(xsd:boolean($isCorrect))">
-								<ctl:message>FAILURE:  The server did not return the expected exception report response to a GetCapabilities request with null Version parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "InvalidParameterValue" and a locator of "Version".</ctl:message>
-								<ctl:fail />
-							</xsl:if>
-						</xsl:if>
-					</xsl:otherwise>
-				</xsl:choose>
-			</ctl:code>
-		</ctl:test>
-		<ctl:test name="sps:core-SPS.GetCapabilities-PostRequestInvalidVersion.1">
-			<ctl:param name="serviceURL" />
-			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>Send a request with invalid parameter "Version",and the response must be a valid exception with code "InvalidParameterValue" and locator "procedure". </ctl:assertion>
-			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "InvalidParameterValue" and locator is "Version"; fail otherwise.</ctl:comment>
-			<ctl:link title=""></ctl:link>
-			<ctl:code>
-				<xsl:variable name="getCapabilitiesResponse">
-					<xsl:if test="$PostEncodingIsSOAP=string('true')">
-						<ctl:soap-request version="1.2" charset="UTF-8">
-							<ctl:url>
-								<xsl:value-of select="$serviceURL"/>
-							</ctl:url> 
-							<ctl:body>
-								<sps:GetCapabilities Version="999"
-									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
-									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
-									xmlns:sps="http://www.opengis.net/sps/2.0" 
-									xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></sps:GetCapabilities>
-							</ctl:body>
-							<ctl:call-function name="spsFunctions:validateExceptionReportSOAP" />
-						</ctl:soap-request>
-					</xsl:if>
-					<xsl:if test="not($PostEncodingIsSOAP=string('true'))">
-						<ctl:request>
-							<ctl:url>
-								<xsl:value-of select="$serviceURL" />
-							</ctl:url>
-							<ctl:method>post</ctl:method>
-							<ctl:body>
-								<sps:GetCapabilities Version="999"
-									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
-									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
-									xmlns:sps="http://www.opengis.net/sps/2.0" 
-									xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"></sps:GetCapabilities>
-							</ctl:body>
-							<ctl:call-function name="spsFunctions:validateExceptionReport" />
-						</ctl:request>
-					</xsl:if>
-				</xsl:variable>
-				<xsl:choose>
-					<xsl:when test="not($getCapabilitiesResponse/*)">
-						<ctl:message>FAILURE:  The server did not return a response, or the response was not valid according to the GetCapabilities response schema for "SPS" />.</ctl:message>
-						<ctl:fail/>
-					</xsl:when>
-					<xsl:otherwise>
-						<xsl:if test="$getCapabilitiesResponse/*">
-							<xsl:if test="$PostEncodingIsSOAP=string('true')">
-								<ctl:message>The response was:  <xsl:value-of select="spsFunctions:getExceptionInfoSOAP($getCapabilitiesResponse)" /></ctl:message>
-							</xsl:if>
-							<xsl:if test="not($PostEncodingIsSOAP=string('true'))">
-								<ctl:message>The response was:  <xsl:value-of select="spsFunctions:getExceptionInfo($getCapabilitiesResponse)" /></ctl:message>
-							</xsl:if>
-							<ctl:message>Checking the validity of the response to a GetCapabilities request with invalid Version parameter.</ctl:message>
-							<xsl:variable name="isCorrect">
-								<ctl:call-function name="spsFunctions:checkExceptionReport">
-									<ctl:with-param name="exceptionReport" select="$getCapabilitiesResponse" />
-									<ctl:with-param name="exceptionCodeToCheck" select="string('InvalidParameterValue')" />
-									<ctl:with-param name="locatorToCheck" select="string('Version')" />
-									<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
-								</ctl:call-function>
-							</xsl:variable>
-							<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
-							<xsl:if test="not(xsd:boolean($isCorrect))">
-								<ctl:message>FAILURE:  The server did not return the expected exception report response to a GetCapabilities request with invalid Version parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "InvalidParameterValue" and a locator of "Version".</ctl:message>
+								<ctl:message>FAILURE:  The server did not return the expected exception report response to a GetCapabilities request with invalid Service parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "InvalidParameterValue" and a locator of "service".</ctl:message>
 								<ctl:fail />
 							</xsl:if>
 						</xsl:if>
@@ -1590,8 +1282,8 @@
 		<ctl:test name="sps:core-SPS.GetCapabilities-PostRequestNormal">
 			<ctl:param name="serviceURL" />
 			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>Send a request with invalid parameter "Version",and the response must be a valid exception with code "InvalidParameterValue" and locator "procedure". </ctl:assertion>
-			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "InvalidParameterValue" and locator is "Version"; fail otherwise.</ctl:comment>
+			<ctl:assertion>Send a request with invalid parameter "version",and the response must be a valid exception with code "InvalidParameterValue" and locator "procedure". </ctl:assertion>
+			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "InvalidParameterValue" and locator is "version"; fail otherwise.</ctl:comment>
 			<ctl:link title=""></ctl:link>
 			<ctl:code>
 				<xsl:variable name="getCapabilitiesResponse">
@@ -1601,7 +1293,7 @@
 								<xsl:value-of select="$serviceURL"/>
 							</ctl:url>
 							<ctl:body>
-								<sps:GetCapabilities Service="SPS" Version="2.0.0"
+								<sps:GetCapabilities service="SPS"
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -1617,7 +1309,7 @@
 							</ctl:url>
 							<ctl:method>post</ctl:method>
 							<ctl:body>
-								<sps:GetCapabilities Service="SPS" Version="2.0.0"
+								<sps:GetCapabilities service="SPS" version="2.0.0"
 									xmlns:soap12="http://www.w3.org/2003/05/soap-envelope" 
 									xsi:schemaLocation="http://www.w3.org/2003/05/soap-envelope http://www.w3.org/2003/05/soap-envelope/soap-envelope.xsd http://www.opengis.net/sps/2.0 http://schemas.opengis.net/sps/2.0/sps.xsd" 
 									xmlns:sps="http://www.opengis.net/sps/2.0" 
@@ -1764,8 +1456,8 @@
 			<ctl:param name="DescribeSensor_URL" />
 			<ctl:param name="getCapabilitiesResponse" />
 			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>Send a request without parameter "Service",and the response must be a valid exception with code "MissingParameterValue" and locator "Service". </ctl:assertion>
-			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "MissingParameterValue" and locator is "Service"; fail otherwise.</ctl:comment>
+			<ctl:assertion>Send a request without parameter "service", and the response must be a valid exception with code "MissingParameterValue" and locator "service". </ctl:assertion>
+			<ctl:comment>Pass if the server returns a valid exception message with an exceptionCode "MissingParameterValue" and locator is "service"; fail otherwise.</ctl:comment>
 			<ctl:link title=""></ctl:link>
 			<ctl:code>
 				<!-- get a valid procedure-->
@@ -1828,7 +1520,7 @@
 							</xsl:variable>
 							<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
 							<xsl:if test="not(xsd:boolean($isCorrect))">
-								<ctl:message>FAILURE:  The server did not return the expected exception report response to a DescribeSensor request with no Service parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "MissingParameterValue" and a locator of "Service".</ctl:message>
+								<ctl:message>FAILURE:  The server did not return the expected exception report response to a DescribeSensor request with no Service parameter specified.  The response was expected to be an ExceptionReport with an exceptionCode of "MissingParameterValue" and a locator of "service".</ctl:message>
 								<ctl:fail />
 							</xsl:if>
 						</xsl:if>
@@ -6210,13 +5902,13 @@
 							<ctl:call-function name="spsFunctions:checkExceptionReport">
 								<ctl:with-param name="exceptionReport" select="$GetTaskResponse" />
 								<ctl:with-param name="exceptionCodeToCheck" select="string('MissingParameterValue')" />
-								<ctl:with-param name="locatorToCheck" select="string('Version')" />
+								<ctl:with-param name="locatorToCheck" select="string('version')" />
 								<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
 							</ctl:call-function>
 						</xsl:variable>
 						<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
 						<xsl:if test="not(xsd:boolean($isCorrect))">
-							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of InvalidParameterValue and a locator of Version.</ctl:message>
+							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of InvalidParameterValue and a locator of "version".</ctl:message>
 							<ctl:fail />
 						</xsl:if>
 					</xsl:otherwise>
@@ -6227,7 +5919,7 @@
 			<ctl:param name="GetTask_URL" />
 			<ctl:param name="task" />
 			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>The server returns a valid error report message with a value of InvalidParameterValue for the exceptionCode parameter when null Version value is supplied in the request.</ctl:assertion>
+			<ctl:assertion>The server returns a valid error report message with a value of InvalidParameterValue for the exceptionCode parameter when null version value is supplied in the request.</ctl:assertion>
 			<ctl:comment>Pass if the server return a valid Exception response; fail otherwise.</ctl:comment>
 			<ctl:link title=""></ctl:link>
 			<ctl:code>
@@ -6279,13 +5971,13 @@
 							<ctl:call-function name="spsFunctions:checkExceptionReport">
 								<ctl:with-param name="exceptionReport" select="$GetTaskResponse" />
 								<ctl:with-param name="exceptionCodeToCheck" select="string('InvalidParameterValue')" />
-								<ctl:with-param name="locatorToCheck" select="string('Version')" />
+								<ctl:with-param name="locatorToCheck" select="string('version')" />
 								<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
 							</ctl:call-function>
 						</xsl:variable>
 						<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
 						<xsl:if test="not(xsd:boolean($isCorrect))">
-							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of InvalidParameterValue and a locator of Version.</ctl:message>
+							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of InvalidParameterValue and a locator of "version".</ctl:message>
 							<ctl:fail />
 						</xsl:if>
 					</xsl:otherwise>
@@ -6348,13 +6040,13 @@
 							<ctl:call-function name="spsFunctions:checkExceptionReport">
 								<ctl:with-param name="exceptionReport" select="$GetTaskResponse" />
 								<ctl:with-param name="exceptionCodeToCheck" select="string('InvalidParameterValue')" />
-								<ctl:with-param name="locatorToCheck" select="string('Version')" />
+								<ctl:with-param name="locatorToCheck" select="string('version')" />
 								<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
 							</ctl:call-function>
 						</xsl:variable>
 						<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
 						<xsl:if test="not(xsd:boolean($isCorrect))">
-							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of InvalidParameterValue and a locator of Version.</ctl:message>
+							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of InvalidParameterValue and a locator of "version".</ctl:message>
 							<ctl:fail />
 						</xsl:if>
 					</xsl:otherwise>
@@ -6998,7 +6690,7 @@
 			<ctl:param name="DescribeResultAccess_URL" />
 			<ctl:param name="procedure" />
 			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>The server returns a valid error report message with a value of MissingParameterValue for the exceptionCode parameter when no Version is supplied in the request.</ctl:assertion>
+			<ctl:assertion>The server returns a valid error report message with a value of MissingParameterValue for the exceptionCode parameter when no "version" is supplied in the request.</ctl:assertion>
 			<ctl:comment>Pass if the server return a valid Exception response; fail otherwise.</ctl:comment>
 			<ctl:link title=""></ctl:link>
 			<ctl:code>
@@ -7054,13 +6746,13 @@
 							<ctl:call-function name="spsFunctions:checkExceptionReport">
 								<ctl:with-param name="exceptionReport" select="$DescribeResultAccessResponse" />
 								<ctl:with-param name="exceptionCodeToCheck" select="string('MissingParameterValue')" />
-								<ctl:with-param name="locatorToCheck" select="string('Version')" />
+								<ctl:with-param name="locatorToCheck" select="string('version')" />
 								<ctl:with-param name="PostEncodingIsSOAP" select="$PostEncodingIsSOAP" />
 							</ctl:call-function>
 						</xsl:variable>
 						<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
 						<xsl:if test="not(xsd:boolean($isCorrect))">
-							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of MissingParameterValue and a locator of Version.</ctl:message>
+							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of MissingParameterValue and a locator of "version".</ctl:message>
 							<ctl:fail />
 						</xsl:if>
 					</xsl:otherwise>
@@ -7133,7 +6825,7 @@
 						</xsl:variable>
 						<ctl:message>The validity check returned:  <xsl:value-of select="$isCorrect" /></ctl:message>
 						<xsl:if test="not(xsd:boolean($isCorrect))">
-							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of InvalidParameterValue and a locator of Version.</ctl:message>
+							<ctl:message>FAILURE:  The returned exception report was expected to contain an exceptionCode of InvalidParameterValue and a locator of "version".</ctl:message>
 							<ctl:fail />
 						</xsl:if>
 					</xsl:otherwise>
@@ -7144,7 +6836,7 @@
 			<ctl:param name="DescribeResultAccess_URL" />
 			<ctl:param name="procedure" />
 			<ctl:param name="PostEncodingIsSOAP" />
-			<ctl:assertion>The server returns a valid error report message with a value of InvalidParameterValue for the exceptionCode parameter when invalid Version value is supplied in the request.</ctl:assertion>
+			<ctl:assertion>The server returns a valid error report message with a value of InvalidParameterValue for the exceptionCode parameter when invalid version value is supplied in the request.</ctl:assertion>
 			<ctl:comment>Pass if the server return a valid Exception response; fail otherwise.</ctl:comment>
 			<ctl:link title=""></ctl:link>
 			<ctl:code>


More information about the CITE-Forum mailing list