[OpenLayers-Users] How to send a GetCapabilities request to a SOS service?
Bart van den Eijnden
bartvde at opengeo.org
Mon Jun 10 08:20:22 PDT 2013
There is no support for SOS GetCapabilities POST, only GET.
Best regards,
Bart
--
Bart van den Eijnden
OpenGeo - http://opengeo.org
Expert service straight from the developers.
On Jun 10, 2013, at 5:15 PM, dkar <dimitriskarakostis3 at hotmail.com> wrote:
>
> Hi,
>
> I am trying to understand how to send a GetCapabilities post request to a
> SOS service.
> Based on examples that I found online, I tried something like this:
>
> OpenLayers.SOSClient = OpenLayers.Class({
> url: 'http://cawa.gfz-potsdam.de:8080/SOS/sos',
> map: null,
> capsformat: new OpenLayers.Format.SOSCapabilities(),
> obsformat: new OpenLayers.Format.SOSGetObservation(),
> initialize: function (options) {
> OpenLayers.Util.extend(this, options);
> var params = {'service': 'SOS', 'request':
> 'GetCapabilities'};
> var paramString =
> OpenLayers.Util.getParameterString(params);
> url = OpenLayers.Util.urlAppend(this.url, paramString);
> OpenLayers.Request.GET({url: url,
> success: alert(url);});
> },...
>
> But it doesn't work. Is there another way to do it? For example, to send the
> request in XML format instead of a url? Any advice would be helpful.
>
> Thanks a lot.
> D.
>
>
>
> --
> View this message in context: http://osgeo-org.1560.x6.nabble.com/How-to-send-a-GetCapabilities-request-to-a-SOS-service-tp5059145.html
> Sent from the OpenLayers Users mailing list archive at Nabble.com.
> _______________________________________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/openlayers-users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/openlayers-users/attachments/20130610/204f98ff/attachment-0001.html>
More information about the Users
mailing list