58
Copyright © 2010 Open Geospatial Consortium Inc. choice
element ref
= gml:_FeatureCollection
element ref
= wmts:TextPayload
element ref
= wmts:BinaryPayload
element name
= AnyContent
type =
anyType choice
complexType element
9.3.4 GetFeatureInfo SOAP encoding response example
A GetFeatureInfo operation SOAP response for the GetFeatureInfo SOAP request example in subclause 9.3.2 may look like this in GML encoding:
?xml version=1.0 encoding=UTF-8? soap:Envelope
xmlns:soap =
http:www.w3.org200305soap-envelope xmlns:xsi
= http:www.w3.org2001XMLSchema-instance
xmlns:xsd =
http:www.w3.org2001XMLSchema xsi:schemaLocation
= http:www.w3.org200305soap-envelope
http:www.w3.org200305soap-envelope.xsd soap:Body
FeatureInfoResponse ReguralGridedElevations
xmlns =
http:www.maps.bobetopo2 xmlns:gml
= http:www.opengis.netgml
xsi:schemaLocation =
http:www.maps.bobetopo2 wmtsGetFeatureInfo_response.xsd
featureMember GridPoint_etopo2
elevation 503.0
elevation TileRow
1 TileRow
TileCol 2
TileCol J
86 J
I 132
I GridPoint_etopo2
featureMember ReguralGridedElevations
FeatureInfoResponse soap:Body
soap:Envelope
A GetFeatureInfo operation SOAP response with the same information in HTML encoding may look like this:
?xml version=1.0 encoding=UTF-8? soap:Envelope
xmlns:soap =
http:www.w3.org200305soap-envelope xmlns:xsi
= http:www.w3.org2001XMLSchema-instance
xmlns:xsd =
http:www.w3.org2001XMLSchema xsi:schemaLocation
= http:www.w3.org200305soap-envelope
http:www.w3.org200305soap-envelope.xsd soap:Body
FeatureInfoResponse xmlns
= http:www.opengis.netwmts1.0
xmlns:gml =
http:www.opengis.netgml xsi:schemaLocation
= http:www.opengis.netwmts1.0
wmtsGetFeatureInfo_response.xsd
Copyright © 2010 Open Geospatial Consortium Inc.
59
TextPayload Format
texthtml Format
TextContent [CDATA[
DOCTYPE HTML PUBLIC -W3CDTD HTML 3.2 FinalEN HTML
titleGetFeatureInfoResponsetitle bElevationb503.0br
bTileRowb1br bTileColb2br
bJb86br bIb132br
HTML ]]
TextContent TextPayload
FeatureInfoResponse soap:Body
soap:Envelope NOTE
The use of [CDATA[ ]] is needed for embedded HTML data but will not be needed for XHTML.
A GetFeatureInfo operation SOAP response with the same information in arbitrary xml encoding may look like this:
?xml version=1.0 encoding=UTF-8? soap:Envelope
xmlns:soap =
http:www.w3.org200305soap-envelope xmlns:xsi
= http:www.w3.org2001XMLSchema-instance
xmlns:xsd =
http:www.w3.org2001XMLSchema xsi:schemaLocation
= http:www.w3.org200305soap-envelope
http:www.w3.org200305soap-envelope.xsd soap:Body
FeatureInfoResponse xmlns
= http:www.opengis.netwmts1.0
xmlns:gml =
http:www.opengis.netgml xsi:schemaLocation
= http:www.opengis.netwmts1.0
wmtsGetFeatureInfo_response.xsd AnyContent
GridPoint_etopo2 elevation
503.0 elevation
TileRow 1
TileRow TileCol
2 TileCol
J 86
J I
132 I
GridPoint_etopo2 AnyContent
FeatureInfoResponse soap:Body
soap:Envelope
9.4 Exceptions in SOAP encoding
If an error is detected while processing an operation request encoded in a SOAP envelope, the WMTS server SHALL generate a SOAP 1.2 response message where the
content of the Body element is a Fault element containing an ExceptionReport element as defined in clause 8.5 of OWS Common [OGC 06-121r3]. This SHALL be done
using the following XML fragment: