Skip to content

Instantly share code, notes, and snippets.

@agtokty
Created September 18, 2015 10:52
Show Gist options
  • Save agtokty/cde89879a2c3674dbbaf to your computer and use it in GitHub Desktop.
Save agtokty/cde89879a2c3674dbbaf to your computer and use it in GitHub Desktop.
Test sos:GOBIRequestValidRequest_obsByIdRetrieval type Mandatory default result Passed (s0003/d804e2430_1/d804e15659_1)
Assertion: Send a valid request ,and there must be have a valid GetObservationByIdResponse returned.
Message d804e17280_1:
observation: "".
Request d804e17372_1:
Method: post
URL: http://sensorweb.demo.52north.org/sensorwebtestbed/service/pox
Body:
<sos:GetObservationById xmlns:ctl="http://www.occamlab.com/ctl" xmlns:fes="http://www.opengis.net/fes/2.0"
xmlns:gen="java:com.occamlab.te.Generator"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:om="http://www.opengis.net/om/2.0"
xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:owsTests="http://www.opengis.net/ows/1.1"
xmlns:parsers="http://www.occamlab.com/te/parsers"
xmlns:saxon="http://saxon.sf.net/"
xmlns:sml="http://www.opengis.net/sensorML/1.0.1"
xmlns:soap11="http://schemas.xmlsoap.org/soap/"
xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"
xmlns:sos="http://www.opengis.net/sos/2.0"
xmlns:sosFunctions="http://www.opengis.net/sos/2.0"
xmlns:swe="http://www.opengis.net/swe/2.0"
xmlns:swes="http://www.opengis.net/swes/2.0"
xmlns:te="http://www.occamlab.com/te"
xmlns:tec="java:com.occamlab.te.TECore"
xmlns:tems="java:com.occamlab.te.web.MonitorServlet"
xmlns:wsa="http://www.w3.org/2005/08/addressing"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
service="SOS"
version="2.0.0"
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/sos/2.0 http://schemas.opengis.net/sos/2.0/sos.xsd">
<sos:observation/>
</sos:GetObservationById>
Response from parser parsers:XMLValidatingParser:
<ows:ExceptionReport xmlns:ows="http://www.opengis.net/ows/1.1"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
version="2.0.0"
xsi:schemaLocation="http://www.opengis.net/ows/1.1 http://schemas.opengis.net/ows/1.1.0/owsAll.xsd">
<ows:Exception exceptionCode="MissingParameterValue" locator="observation">
<ows:ExceptionText>The value for the parameter 'observation' is missing in the request!</ows:ExceptionText>
</ows:Exception>
<!--Response received in [669] milliseconds--></ows:ExceptionReport>
Message d804e17432_1:
responseRoot: "ExceptionReport".
Message d804e17439_1:
responseRoot2: "".
Message d804e17451_1:
FAILURE: The root element from the response to a GetObservationById request "ExceptionReport" does not match the expected root element of "GetObservationByIdResponse"
Result: Failed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment