Insert observations using REST is not allowed

classic Classic list List threaded Threaded
17 messages Options
Reply | Threaded
Open this post in threaded view
|

Insert observations using REST is not allowed

Alberto Brosich

Hi to all,

I'm trying to use the RESTful extension to insert observation in a SOS
server version 4.2.

The RESTful Extension seems work correctly reading the server.

When I try to insert an observation using POST the server replies with:

ERROR [ajp-nio-8010-exec-7] [ObservationsDecoder.java:193] HTTP method
"POST" not allowed for "observations" resources.

I do not find any configuration to enable or disable POST method.

Any idea? Is POST actually supported?

Regards

Alberto

_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert observations using REST is not allowed

Carsten Hollmann
Hi Alberto,

I have just tested and the insertion of observations via the POST method
is supported.

The exception you mentioned is thrown if the path payload is not empty,
so if there is a value after "/observations" like this:

.../rest/observations/123

Could this be the problem?

Best,
Carsten

Am 03.03.2016 um 12:28 schrieb Alberto Brosich:

>
> Hi to all,
>
> I'm trying to use the RESTful extension to insert observation in a SOS
> server version 4.2.
>
> The RESTful Extension seems work correctly reading the server.
>
> When I try to insert an observation using POST the server replies with:
>
> ERROR [ajp-nio-8010-exec-7] [ObservationsDecoder.java:193] HTTP method
> "POST" not allowed for "observations" resources.
>
> I do not find any configuration to enable or disable POST method.
>
> Any idea? Is POST actually supported?
>
> Regards
>
> Alberto
>
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>

--
Carsten Hollmann

52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany

E-Mail: [hidden email]
Fon: +49 (0)-251-396371-35
Fax: +49 (0)-251-396371-11
http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert observations using REST is not allowed

Alberto
Hi Carsten,

I found there were some errors in the payload, but now the server
throws the following exception:

2016-04-18 17:28:20,543 DEBUG [ajp-nio-8010-exec-33]
[ExceptionLogger.java:83] Exception thrown
org.n52.sos.exception.ows.NoApplicableCodeException: Error while adding
result time to Hibernate Observation entitiy!
        at
org.n52.sos.ds.hibernate.dao.AbstractObservationDAO.addResultTimeToObse
rvation(AbstractObservationDAO.java:1062) ~[hibernate-common-
4.3.6.jar:na]
        at
org.n52.sos.ds.hibernate.dao.AbstractObservationDAO.addPhenomeonTimeAnd
ResultTimeToObservation(AbstractObservationDAO.java:1018) ~[hibernate-
common-4.3.6.jar:na]
        at
org.n52.sos.ds.hibernate.dao.AbstractObservationDAO.insertObservationSi
ngleValue(AbstractObservationDAO.java:554) ~[hibernate-common-
4.3.6.jar:na]
        at
org.n52.sos.ds.hibernate.InsertObservationDAO.insertObservation(InsertO
bservationDAO.java:198) ~[hibernate-dao-4.3.6.jar:na]


This is the payload:

<?xml version="1.0" encoding="UTF-8"?>
<sosREST:Observation xmlns:sosREST="http://www.opengis.net/sosREST/1.0"
xmlns:om="http://www.opengis.net/om/2.0"
xmlns:gml="http://www.opengis.net/gml/3.2"
xmlns:xlink="http://www.w3.org/1999/xlink"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<om:OM_Observation gml:id="p1">
<gml:identifier codespace="">be9dd61e-1ff3-48a6-84a8-
c07869e76196</gml:identifier>
<om:phenomenonTime>
<gml:TimeInstant gml:id="phenomenonTime">
<gml:timePosition>2012-10-12T11:15:00.000+02:00</gml:timePosition>
</gml:TimeInstant>
</om:phenomenonTime>
<om:resultTime xlink:href="#phenomenonTime"/>
<om:procedure xlink:href="http://host.domain/sos/service/rest/sensors/u
rn:ogc:object:feature:Sensor:XXX:yyyy"/>;
<om:observedProperty xlink:href="http://vocab.nerc.ac.uk/collection/P01
/current/PHXXZZXX"/>;
<om:featureOfInterest xlink:href="http://host.domain/sos/service/rest/f
eatures/fffff"/>;
<om:result xsi:type="gml:MeasureType" uom="pH_units">1000</om:result>
</om:OM_Observation>
<sosREST:link rel="http://www.opengis.net/sosREST/1.0/offering-get"
href="http://host.domain/sos/service/rest/offerings/OOOOO"
type="application/gml+xml"/>
</sosREST:Observation>

I tried some different timestamps. This one is copied from 52n manual
on rest binding.

The version of the SOS server is 4.3.6. The database is postgresql
9.4.7 + postgis 2.2.2.

Any suggest?

Best regards

Alberto

On Thu, 2016-03-31 at 17:00 +0200, Carsten Hollmann wrote:

> Hi Alberto,
>
> I have just tested and the insertion of observations via the POST
> method 
> is supported.
>
> The exception you mentioned is thrown if the path payload is not
> empty,
> so if there is a value after "/observations" like this:
>
> .../rest/observations/123
>
> Could this be the problem?
>
> Best,
> Carsten
>
> Am 03.03.2016 um 12:28 schrieb Alberto Brosich:
> >
> >
> > Hi to all,
> >
> > I'm trying to use the RESTful extension to insert observation in a
> > SOS
> > server version 4.2.
> >
> > The RESTful Extension seems work correctly reading the server.
> >
> > When I try to insert an observation using POST the server replies
> > with:
> >
> > ERROR [ajp-nio-8010-exec-7] [ObservationsDecoder.java:193] HTTP
> > method
> > "POST" not allowed for "observations" resources.
> >
> > I do not find any configuration to enable or disable POST method.
> >
> > Any idea? Is POST actually supported?
> >
> > Regards
> >
> > Alberto
> >
> > _______________________________________________
> > SWE mailing list
> > [hidden email]
> > http://list.52north.org/mailman/listinfo/swe
> > http://sensorweb.forum.52north.org
> > Please respect our mailing list guidelines:
> > http://52north.org/resources/mailing-lists-and-forums/guidelines
> >
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

52N SOS Test Client - Bug in DescribeSensor with procedureDescriptionFormat=observationProcess?

Scholten, Daniel
Hello,

in the 52N SOS Test Client [1] the getCapabilities (minimal-example) tells me, that I can call describeSensor with the procedureDescriptionFormat observationProcess. I get an empty answer [2], while I get a valid answer with procedureDescriptionFormat sensorML [3].

Is it a bug?

Best wishes
Daniel

[1] http://sensorweb.demo.52north.org/52n-sos-webapp/client, Version 2, KVP-Binding
[2] http://sensorweb.demo.52north.org/52n-sos-webapp/service?service=SOS&version=2.0.0&request=DescribeSensor&procedure=http%3A%2F%2Fwww.52north.org%2Ftest%2Fprocedure%2F1&procedureDescriptionFormat=http%3A%2F%2Fwww.opengis.net%2Fwaterml%2F2.0%2FobservationProcess 
[3] http://sensorweb.demo.52north.org/52n-sos-webapp/service?service=SOS&version=2.0.0&request=DescribeSensor&procedure=http%3A%2F%2Fwww.52north.org%2Ftest%2Fprocedure%2F1&procedureDescriptionFormat=http%3A%2F%2Fwww.opengis.net%2FsensorML%2F1.0.1 

__________________________________________________
Daniel Scholten

Niersverband
Stabsstelle Informations- und Modelltechnik (IMT)
Sachbereich Softwaretechnik
Am Niersverband 10
41747 Viersen

Tel.: +49 2162 3704 - 460 [(Sekretariat: - 101)]
Fax: +49 2162 3704 - 444
E-Mail: [hidden email]

Körperschaft des öffentlichen Rechts, Sitz: Viersen
Vorsitzender des Verbandsrates: Rolf A. Königs, Vorstand: Prof. Dr.-Ing. Dietmar Schitthelm


_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

52N SOS Test Client - wrong type of the wml2:metadata element?

Scholten, Daniel
Hello,

requirement /req/xsd-measurement-timeseries-tvp/timeseries-metadata of WaterML2.0 (OGC-document 10-126r4, pdf-page 98) states that the type of the wml2:metadata element shall be
wml2:MeasurementTimeseriesMetadata for MeasurementTimeseries.

The 52N SOS Test Client seems to write wml2:TimeseriesMetadata instead of wml2:MeasurementTimeseriesMetadata, see [1].

Is it a bug?

Best wishes
Daniel

[1] http://sensorweb.demo.52north.org/52n-sos-webapp/service?service=SOS&version=2.0.0&request=GetObservation&observedProperty=http%3A%2F%2Fwww.52north.org%2Ftest%2FobservableProperty%2F1&responseFormat=http%3A%2F%2Fwww.opengis.net%2Fwaterml%2F2.0

__________________________________________________
Daniel Scholten

Niersverband
Stabsstelle Informations- und Modelltechnik (IMT)
Sachbereich Softwaretechnik
Am Niersverband 10
41747 Viersen

Tel.: +49 2162 3704 - 460 [(Sekretariat: - 101)]
Fax: +49 2162 3704 - 444
E-Mail: [hidden email]

Körperschaft des öffentlichen Rechts, Sitz: Viersen
Vorsitzender des Verbandsrates: Rolf A. Königs, Vorstand: Prof. Dr.-Ing. Dietmar Schitthelm



_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

OGC Test Suite - Test of SOS-getCapabilities

Scholten, Daniel
Dear all,

In an official OGC example [1] the value of the element <ows:ServiceType> in section <ows:ServiceIdentification> is "OGC:SOS", while the OGC Test Suite [2] lets a Service fail a test until the value is "SOS".

Does anyone has a suggestion which value to use in an SOS-implementation, "SOS" or "OGC:SOS"?

Thanks
Daniel

[1] http://schemas.opengis.net/sos/2.0/examples/core/GetCapabilities1_response.xml 
[2] http://cite.opengeospatial.org/teamengine/ 
__________________________________________________
Daniel Scholten

Niersverband
Stabsstelle Informations- und Modelltechnik (IMT)
Sachbereich Softwaretechnik
Am Niersverband 10
41747 Viersen

Tel.: +49 2162 3704 - 460 [(Sekretariat: - 101)]
Fax: +49 2162 3704 - 444
E-Mail: [hidden email]

Körperschaft des öffentlichen Rechts, Sitz: Viersen
Vorsitzender des Verbandsrates: Rolf A. Königs, Vorstand: Prof. Dr.-Ing. Dietmar Schitthelm

_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: 52N SOS Test Client - wrong type of the wml2:metadata element?

Carsten Hollmann
In reply to this post by Scholten, Daniel
Hi Daniel,

Thanks for reporting this and we will check if it is a bug.

It would be great if you would create a GitHub issue [0] for this issue.

Thanks,
Carsten

[0] https://github.com/52North/SOS/issues

_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: 52N SOS Test Client - Bug in DescribeSensor with procedureDescriptionFormat=observationProcess?

Carsten Hollmann
In reply to this post by Scholten, Daniel
Hi Daniel,

The 52°North SOS at sensorweb.demo.52north.org [0] is not always an
instance of the current 52°North SOS version.
I have tested it with the current version and the DescribeSensor request
with procedureDescriptionFormat observationProcess works.

Best,
Carsten

[0] http://sensorweb.demo.52north.org/52n-sos-webapp

Am 19.04.2016 um 11:19 schrieb Scholten, Daniel:

> Hello,
>
> in the 52N SOS Test Client [1] the getCapabilities (minimal-example) tells me, that I can call describeSensor with the procedureDescriptionFormat observationProcess. I get an empty answer [2], while I get a valid answer with procedureDescriptionFormat sensorML [3].
>
> Is it a bug?
>
> Best wishes
> Daniel
>
> [1] http://sensorweb.demo.52north.org/52n-sos-webapp/client, Version 2, KVP-Binding
> [2] http://sensorweb.demo.52north.org/52n-sos-webapp/service?service=SOS&version=2.0.0&request=DescribeSensor&procedure=http%3A%2F%2Fwww.52north.org%2Ftest%2Fprocedure%2F1&procedureDescriptionFormat=http%3A%2F%2Fwww.opengis.net%2Fwaterml%2F2.0%2FobservationProcess
> [3] http://sensorweb.demo.52north.org/52n-sos-webapp/service?service=SOS&version=2.0.0&request=DescribeSensor&procedure=http%3A%2F%2Fwww.52north.org%2Ftest%2Fprocedure%2F1&procedureDescriptionFormat=http%3A%2F%2Fwww.opengis.net%2FsensorML%2F1.0.1
>
> __________________________________________________
> Daniel Scholten
>
> Niersverband
> Stabsstelle Informations- und Modelltechnik (IMT)
> Sachbereich Softwaretechnik
> Am Niersverband 10
> 41747 Viersen
>
> Tel.: +49 2162 3704 - 460 [(Sekretariat: - 101)]
> Fax: +49 2162 3704 - 444
> E-Mail: [hidden email]
>
> Körperschaft des öffentlichen Rechts, Sitz: Viersen
> Vorsitzender des Verbandsrates: Rolf A. Königs, Vorstand: Prof. Dr.-Ing. Dietmar Schitthelm
>
>
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>

--
Carsten Hollmann

52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany

E-Mail: [hidden email]
Fon: +49 (0)-251-396371-35
Fax: +49 (0)-251-396371-11
http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert observations using REST is not allowed

Alberto
In reply to this post by Alberto

Hi Carsten,

the problem is how I specify the resultTime.
Following the example of the guide I specify resultTime as xlink to
phonomenonTime, and this is what I prefer. But it doesn't work.

If I use a TimeInstant tag works all fine.

Is it a bug of SOS server? Is it an unmanaged situation?

Best regards

Alberto



On Tue, 2016-04-19 at 10:16 +0200, Alberto wrote:

> Hi Carsten,
>
> I found there were some errors in the payload, but now the server
> throws the following exception:
>
> 2016-04-18 17:28:20,543 DEBUG [ajp-nio-8010-exec-33]
> [ExceptionLogger.java:83] Exception thrown
> org.n52.sos.exception.ows.NoApplicableCodeException: Error while
> adding
> result time to Hibernate Observation entitiy!
> at
> org.n52.sos.ds.hibernate.dao.AbstractObservationDAO.addResultTimeToOb
> se
> rvation(AbstractObservationDAO.java:1062) ~[hibernate-common-
> 4.3.6.jar:na]
> at
> org.n52.sos.ds.hibernate.dao.AbstractObservationDAO.addPhenomeonTimeA
> nd
> ResultTimeToObservation(AbstractObservationDAO.java:1018)
> ~[hibernate-
> common-4.3.6.jar:na]
> at
> org.n52.sos.ds.hibernate.dao.AbstractObservationDAO.insertObservation
> Si
> ngleValue(AbstractObservationDAO.java:554) ~[hibernate-common-
> 4.3.6.jar:na]
> at
> org.n52.sos.ds.hibernate.InsertObservationDAO.insertObservation(Inser
> tO
> bservationDAO.java:198) ~[hibernate-dao-4.3.6.jar:na]
>
>
> This is the payload:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <sosREST:Observation xmlns:sosREST="http://www.opengis.net/sosREST/1.
> 0"
> xmlns:om="http://www.opengis.net/om/2.0"
> xmlns:gml="http://www.opengis.net/gml/3.2"
> xmlns:xlink="http://www.w3.org/1999/xlink"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">;
> <om:OM_Observation gml:id="p1">
> <gml:identifier codespace="">be9dd61e-1ff3-48a6-84a8-
> c07869e76196</gml:identifier>
> <om:phenomenonTime>
> <gml:TimeInstant gml:id="phenomenonTime">
> <gml:timePosition>2012-10-12T11:15:00.000+02:00</gml:timePosition>
> </gml:TimeInstant>
> </om:phenomenonTime>
> <om:resultTime xlink:href="#phenomenonTime"/>
> <om:procedure xlink:href="http://host.domain/sos/service/rest/sensors
> /u
> rn:ogc:object:feature:Sensor:XXX:yyyy"/>;
> <om:observedProperty xlink:href="http://vocab.nerc.ac.uk/collection/P
> 01
> /current/PHXXZZXX"/>;
> <om:featureOfInterest xlink:href="http://host.domain/sos/service/rest
> /f
> eatures/fffff"/>;
> <om:result xsi:type="gml:MeasureType" uom="pH_units">1000</om:result>
> </om:OM_Observation>
> <sosREST:link rel="http://www.opengis.net/sosREST/1.0/offering-get"
> href="http://host.domain/sos/service/rest/offerings/OOOOO"
> type="application/gml+xml"/>
> </sosREST:Observation>
>
> I tried some different timestamps. This one is copied from 52n manual
> on rest binding.
>
> The version of the SOS server is 4.3.6. The database is postgresql
> 9.4.7 + postgis 2.2.2.
>
> Any suggest?
>
> Best regards
>
> Alberto
>
> On Thu, 2016-03-31 at 17:00 +0200, Carsten Hollmann wrote:
> >
> > Hi Alberto,
> >
> > I have just tested and the insertion of observations via the POST
> > method 
> > is supported.
> >
> > The exception you mentioned is thrown if the path payload is not
> > empty,
> > so if there is a value after "/observations" like this:
> >
> > .../rest/observations/123
> >
> > Could this be the problem?
> >
> > Best,
> > Carsten
> >
> > Am 03.03.2016 um 12:28 schrieb Alberto Brosich:
> > >
> > >
> > >
> > > Hi to all,
> > >
> > > I'm trying to use the RESTful extension to insert observation in
> > > a
> > > SOS
> > > server version 4.2.
> > >
> > > The RESTful Extension seems work correctly reading the server.
> > >
> > > When I try to insert an observation using POST the server replies
> > > with:
> > >
> > > ERROR [ajp-nio-8010-exec-7] [ObservationsDecoder.java:193] HTTP
> > > method
> > > "POST" not allowed for "observations" resources.
> > >
> > > I do not find any configuration to enable or disable POST method.
> > >
> > > Any idea? Is POST actually supported?
> > >
> > > Regards
> > >
> > > Alberto
> > >
> > > _______________________________________________
> > > SWE mailing list
> > > [hidden email]
> > > http://list.52north.org/mailman/listinfo/swe
> > > http://sensorweb.forum.52north.org
> > > Please respect our mailing list guidelines:
> > > http://52north.org/resources/mailing-lists-and-forums/guidelines
> > >
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert observations using REST is not allowed

Carsten Hollmann
Hi Alberto,

I have tested a POX InsertObservation request with resultTime that
references the phenomenonTime and it works with SOS 4.2.

Fails a POX InsertObservation request with the same error?

Best,
Carsten
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert observations using REST is not allowed

Alberto
On Thu, 2016-04-28 at 12:21 +0200, Carsten Hollmann wrote:
> Hi Alberto,
>
> I have tested a POX InsertObservation request with resultTime that 
> references the phenomenonTime and it works with SOS 4.2.
>
> Fails a POX InsertObservation request with the same error?

Using the Test Client POX and SOAP InsertObservation works well.

I'm using SOS server version 4.3.6.

I tested several times the correctness of the XML.

Any suggest?

Regards

Alberto


>
> Best,
> Carsten
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert observations using REST is not allowed

Carsten Hollmann
Hi Alberto,

I briefly debugged the request and it looks like an issue in SOS which
occurs when the REST binding is used.

It would be great if you would create a GitHub issue [0] for this issue.

Thanks,
Carsten


[0] https://github.com/52North/SOS/issues
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: OGC Test Suite - Test of SOS-getCapabilities

Carsten Hollmann
In reply to this post by Scholten, Daniel
Hi Daniel,

I have tested the SOS KVP binding with the OGC Test Suite [1] and the
tests does not fail with "OGC:SOS" as well as with "SOS" as
<ows:ServiceType> value.

Best,
Carsten

[1] http://cite.opengeospatial.org/teamengine/

Am 20.04.2016 um 10:05 schrieb Scholten, Daniel:

> Dear all,
>
> In an official OGC example [1] the value of the element <ows:ServiceType> in section <ows:ServiceIdentification> is "OGC:SOS", while the OGC Test Suite [2] lets a Service fail a test until the value is "SOS".
>
> Does anyone has a suggestion which value to use in an SOS-implementation, "SOS" or "OGC:SOS"?
>
> Thanks
> Daniel
>
> [1] http://schemas.opengis.net/sos/2.0/examples/core/GetCapabilities1_response.xml
> [2] http://cite.opengeospatial.org/teamengine/
> __________________________________________________
> Daniel Scholten
>
> Niersverband
> Stabsstelle Informations- und Modelltechnik (IMT)
> Sachbereich Softwaretechnik
> Am Niersverband 10
> 41747 Viersen
>
> Tel.: +49 2162 3704 - 460 [(Sekretariat: - 101)]
> Fax: +49 2162 3704 - 444
> E-Mail: [hidden email]
>
> Körperschaft des öffentlichen Rechts, Sitz: Viersen
> Vorsitzender des Verbandsrates: Rolf A. Königs, Vorstand: Prof. Dr.-Ing. Dietmar Schitthelm
>
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>

--
Carsten Hollmann

52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany

E-Mail: [hidden email]
Fon: +49 (0)-251-396371-35
Fax: +49 (0)-251-396371-11
http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert observations using REST is not allowed

Carsten Hollmann
In reply to this post by Carsten Hollmann
Hi Alberto,

we have fixed this issue [0] in the maintenance/4.3 (SOS 4.3.x) [1] and
develop (SOS 4.4.x) [2]branch and it will be included in the next releases.

Until the new release you have to checkout the sources from the GitHub
branch [1] or [2] and build the SOS with the fix from sources as
described here [3].

Best,
Carsten

[0] https://github.com/52North/SOS/pull/419
[1] https://github.com/52North/SOS/tree/maintenance/4.3
[2] https://github.com/52North/SOS/tree/develop
[3]
https://wiki.52north.org/bin/view/SensorWeb/SensorObservationServiceIVDocumentation#B1_Building_from_Source
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: 52N SOS Test Client - wrong type of the wml2:metadata element?

Carsten Hollmann
In reply to this post by Scholten, Daniel
Hi Daniel,

we have fixed this issue [0] in the  maintenance/4.3 (SOS 4.3.x) [1] and
develop (SOS 4.4.x) [2]branch and it will be included in the next releases.

Until the new release you have to checkout the sources from the GitHub
branch [1] or [2] and build the SOS with the fix from sources as
described here [3].

Best,
Carsten

[0] https://github.com/52North/SOS/pull/420
[1] https://github.com/52North/SOS/tree/maintenance/4.3
[2] https://github.com/52North/SOS/tree/develop
[3]
https://wiki.52north.org/bin/view/SensorWeb/SensorObservationServiceIVDocumentation#B1_Building_from_Source
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert observations using REST is not allowed

Alberto
In reply to this post by Carsten Hollmann

Hello Carsten,

I just installed version 4.3.7 and tested inserting of observations by
REST.
It works all fine.
Just one note:
in case of exception it returns always error 500 (internal error), that
is not compliant with RESTful "rules" (e.g. error 409 Conflict in case
of already existing observation, etc.).

Do you have plans to improve exception handling?

Best regards

Alberto


On Tue, 2016-05-03 at 14:56 +0200, Carsten Hollmann wrote:

> Hi Alberto,
>
> we have fixed this issue [0] in the maintenance/4.3 (SOS 4.3.x) [1]
> and 
> develop (SOS 4.4.x) [2]branch and it will be included in the next
> releases.
>
> Until the new release you have to checkout the sources from the
> GitHub 
> branch [1] or [2] and build the SOS with the fix from sources as 
> described here [3].
>
> Best,
> Carsten
>
> [0] https://github.com/52North/SOS/pull/419
> [1] https://github.com/52North/SOS/tree/maintenance/4.3
> [2] https://github.com/52North/SOS/tree/develop
> [3] 
> https://wiki.52north.org/bin/view/SensorWeb/SensorObservationServiceI
> VDocumentation#B1_Building_from_Source
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines
Reply | Threaded
Open this post in threaded view
|

Re: Insert observations using REST is not allowed

Carsten Hollmann
Hi Alberto

the RESTful SOS binding was implemented during a project and designed
to the requirements of the customer. Although a long term plan is to
push this RESTful SOS binding to the OGC, is not an OGC standard or
part of the OGC SOS 2.0 specification.

At the moment we are actively looking for new project opportunities to
advance this specification, to present it to the OGC community, and to
improve our implementation. However, as the SOS REST binding is
currently not a part of our ongoing funded projects, it is a bit
difficult for us to do much work on this specific module. Thus, I
cannot directly promise when we are able to improve the exception
handling. However, I will put this definitively on our agenda.

Another option is to check if there are developers in the community
who are interested to do this work as part of another project. In this
case we would of course be happy to provide guidance and support.

Best,
Carsten

Am 13.07.2016 um 16:01 schrieb Alberto:

>
> Hello Carsten,
>
> I just installed version 4.3.7 and tested inserting of observations by
> REST.
> It works all fine.
> Just one note:
> in case of exception it returns always error 500 (internal error), that
> is not compliant with RESTful "rules" (e.g. error 409 Conflict in case
> of already existing observation, etc.).
>
> Do you have plans to improve exception handling?
>
> Best regards
>
> Alberto
>
>
> On Tue, 2016-05-03 at 14:56 +0200, Carsten Hollmann wrote:
>> Hi Alberto,
>>
>> we have fixed this issue [0] in the maintenance/4.3 (SOS 4.3.x) [1]
>> and
>> develop (SOS 4.4.x) [2]branch and it will be included in the next
>> releases.
>>
>> Until the new release you have to checkout the sources from the
>> GitHub
>> branch [1] or [2] and build the SOS with the fix from sources as
>> described here [3].
>>
>> Best,
>> Carsten
>>
>> [0] https://github.com/52North/SOS/pull/419
>> [1] https://github.com/52North/SOS/tree/maintenance/4.3
>> [2] https://github.com/52North/SOS/tree/develop
>> [3]
>> https://wiki.52north.org/bin/view/SensorWeb/SensorObservationServiceI
>> VDocumentation#B1_Building_from_Source
>> _______________________________________________
>> SWE mailing list
>> [hidden email]
>> http://list.52north.org/mailman/listinfo/swe
>> http://sensorweb.forum.52north.org
>> Please respect our mailing list guidelines:
>> http://52north.org/resources/mailing-lists-and-forums/guidelines
> _______________________________________________
> SWE mailing list
> [hidden email]
> http://list.52north.org/mailman/listinfo/swe
> http://sensorweb.forum.52north.org
> Please respect our mailing list guidelines:
> http://52north.org/resources/mailing-lists-and-forums/guidelines
>

--
Carsten Hollmann

52°North Initiative for Geospatial Open Source Software GmbH
Martin-Luther-King-Weg 24
48155 Münster, Germany

E-Mail: [hidden email]
Fon: +49 (0)-251-396371-35
Fax: +49 (0)-251-396371-11
http://52north.org/
Twitter: @FiveTwoN

General Managers: Dr. Albert Remke, Dr. Andreas Wytzisk
Local Court Muenster HRB 10849
_______________________________________________
SWE mailing list
[hidden email]
http://list.52north.org/mailman/listinfo/swe
http://sensorweb.forum.52north.org
Please respect our mailing list guidelines:
http://52north.org/resources/mailing-lists-and-forums/guidelines