AW: [OpenLayers-Users] Problems with setting up a proxy.php
Arnd Wippermann
arnd.wippermann at web.de
Thu Sep 15 12:38:31 EDT 2011
Hi,
To get a correct response from GeoServer one have to escape the url value.
Try this, if you get a GetCapabilities document as response.
http://.../proxy.php?url=http%3A//sub.domain.com/geoserver/wfs%3Fservice%3Dw
fs%26version%3D1.1.0%26request%3DGetCapabilities
If this work, you have to check protocol: new OpenLayers.Protocol.WFS.
Here I can't help, I see nothing strange.
Search for posts for protocol and GeoServer. There should be a couple.
Arnd
-----Ursprüngliche Nachricht-----
Von: openlayers-users-bounces at lists.osgeo.org
[mailto:openlayers-users-bounces at lists.osgeo.org] Im Auftrag von Gabriele
Seitz
Gesendet: Donnerstag, 15. September 2011 13:11
An: users at openlayers.org
Betreff: Re: AW: [OpenLayers-Users] Problems with setting up a proxy.php
Hi Arnd,
thanks for helping.
http://.../proxy.php?url=http://sub.domain.com/geoserver/wfs?service=wfs&ver
sion=1.1.0&request=GetCapabilities gives me this answer:
<ows:ExceptionReport version="1.0.0"
xsi:schemaLocation="http://www.opengis.net/ows
http://sub.domain.com/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd"><o
ws:Exception
exceptionCode="MissingParameterValue"
locator="request"><ows:ExceptionText>Could not determine geoserver request
from http request
org.geoserver.platform.AdvancedDispatchFilter$AdvancedDispatchHttpRequest at 42
9e2de0</ows:ExceptionText></ows:Exception></ows:ExceptionReport>
which I think, is good, because proxy.php is working and URL to geoserver is
basicly ok. But something is missing. Any suggestions?
I worked on the WFS-Definition, but cannot find any mistake, but there must
be one:
var pointlayer =new OpenLayers.Layer.Vector("WFS", {
strategies: [new OpenLayers.Strategy.BBOX()],
styleMap: new OpenLayers.StyleMap(style),
protocol: new OpenLayers.Protocol.WFS({
version:"1.1.0",
url: "http://sub.domain.com/geoserver/wfs",
featureType: "gis_elemente",
geometryName: "the_geom",
featureNS:
"http://sub.domain.com/geoserver/MMPbasic",
schema:
"http://sub.domain.com/geoserver/wfs/DescribeFeatureType?version=1.1.0&typen
ame=MMPbasic:gis_elemente"
})
});
I checked: downloading the features from geoserver Layer preview as wfs to
shapefile is okay. the features look fine in QGIS.
What more do I need to check?
Hope, I gave all necessary information.
Gabriele
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/Problems-with-setting-up-a-proxy-php-
tp6792124p6796409.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
More information about the Users
mailing list