[OpenLayers-Users] WFS Error with XML Parsing Error

Robert Zimmermann zimmermann at zimrob.de
Tue Jul 13 15:49:55 EDT 2010


Hello OpenLayers Users .

 

First . excused my bad English pls . L

 

I try to initialize a WFS Layer from GeoServer with following OpenLayers
Code:

 

new OpenLayers.Layer.WFS(

                "Public Crime Data (WFS)",

                "http://zimrob.com:8080/geoserver/wfs",

                {typename: 'crimewebgis:pcd_incidents'},

                {

                               typename: 'pcd_incidents',

                               featureNS: 'http://www.openplans.org/topp',

                               extractAttributes: false,

                               styleMap: new OpenLayers.StyleMap({

                                                               pointRadius:
8,

                                                               fillColor:
'#ee0000',

                                                               fillOpacity:
0.5,

                                                               strokeColor:
'#ee0000',

 
strokeOpacity: 1,

                                                               strokeWidth:
3

                               })

                }

)

 

When I get the XML File manual via URL all is fine .

 

http://zimrob.com:8080/geoserver/wfs?TYPENAME=crimewebgis%3Apcd_incidents
<http://zimrob.com:8080/geoserver/wfs?TYPENAME=crimewebgis%3Apcd_incidents&S
ERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A31467&BBOX=3051850,45
47700,4125450,6784500>
&SERVICE=WFS&VERSION=1.0.0&REQUEST=GetFeature&SRS=EPSG%3A31467&BBOX=3051850,
4547700,4125450,6784500

 

But the Firebug answer on German

XML-Verarbeitungsfehler: Kein Element gefunden Adresse:
moz-nullprincipal:{13a30aa5-65c8-4cbc-9d04-0624d95090de} Zeile Nr. 1, Spalte
1:

 

The English Translation is maybe "XML Parsing Error: No Element found
Location: : moz-nullprincipal:{13a30aa5-65c8-4cbc-9d04-0624d95090de} Line
Nr. 1, Column 1:"

 

I hope someone can help me.

 

Nice regards,

Robert Zimmermann

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100713/d970b9d4/attachment.html


More information about the Users mailing list