[OpenLayers-Users] Has anyone got WFS-T working with SDE files ?

cgp carina_palanca at forcorp.com
Thu Sep 10 11:56:42 EDT 2009


One more thing, I tried using the Sample Requests page in GeoServer and I got
different responses depending on whether or not I append  "?strict=true" to
the URL. 

POST: (with "?strict=true") 
<wfs:GetFeature xmlns:wfs="http://www.opengis.net/wfs" service="WFS"
version="1.1.0" xsi:schemaLocation="http://www.opengis.net/wfs
http://schemas.opengis.net/wfs/1.1.0/wfs.xsd"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><wfs:Query
typeName="sde:town_markers" srsName="EPSG:900913"
xmlns:sde="http://geoserver.sf.net"><ogc:Filter
xmlns:ogc="http://www.opengis.net/ogc"><ogc:BBOX><ogc:PropertyName>SHAPE</ogc:PropertyName><gml:Envelope
xmlns:gml="http://www.opengis.net/gml"
srsName="EPSG:900913"><gml:lowerCorner>-13824467.518846
6747915.479579</gml:lowerCorner><gml:upperCorner>-12268821.119466
7366749.660465</gml:upperCorner></gml:Envelope></ogc:BBOX></ogc:Filter></wfs:Query></wfs:GetFeature> 

RESPONSE: 
<?xml version="1.0" encoding="UTF-8"?> 
<ows:ExceptionReport version="1.0.0" 
  xsi:schemaLocation="http://www.opengis.net/ows
http://app-serv-01-uat:80/geoserver/schemas/ows/1.0.0/owsExceptionReport.xsd" 
  xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:ows="http://www.opengis.net/ows"> 
  <ows:Exception exceptionCode="InvalidParameterValue"> 
    <ows:ExceptionText>Invalid request cvc-pattern-valid: 
      Value &apos;sde:town_markers&apos; is not 
      facet-valid with respect to pattern 
      &apos;((\w:)?\w(=\w)?){1,}&apos;. 
      cvc-attribute.3: The value 
      &apos;sde:town_markers&apos; of attribute 
      &apos;typeName&apos; on element 
      &apos;wfs:Query&apos; is not valid with 
      respect to its type.</ows:ExceptionText> 
    <ows:ExceptionText>cvc-pattern-valid: Value 
      'sde:town_markers' is not facet-valid with respect to 
      pattern '((\w:)?\w(=\w)?){1,}'.</ows:ExceptionText> 
    <ows:ExceptionText>cvc-attribute.3: The value 
      'sde:town_markers' of attribute 'typeName' on element 
      'wfs:Query' is not valid with respect to its type.</ows:ExceptionText> 
  </ows:Exception> 
</ows:ExceptionReport> 

 If I don't append the "?strict=true" to the end of the URL, it displays the
SDE layers fine (although none of the transactions work). Could that also
contribute to why I'm having trouble with WFS transactions? 

Can someone decipher this for me? I've been stuck on this problem for almost
2 weeks now and all the error messages are becoming even more cryptic for
me. Thanks. 

My code is the following:
.... 
       var saveStrategy = new OpenLayers.Strategy.Save({auto:true}); 

        var wfs_layer = new OpenLayers.Layer.Vector("WFS", { 
            strategies: [ new OpenLayers.Strategy.BBOX(), saveStrategy ], 
            protocol: new OpenLayers.Protocol.WFS({ 
                      url:  "http://app-serv-01-uat/geoserver/wfs", 
                      featureType: "town_markers", 
                      featureNS: "http://geoserver.sf.net", 
                      featurePrefix: "sde", 
                      srsName: "EPSG:900913", 
                      version: "1.1.0", 
                      geometryName:"SHAPE" 
             }) 
        }); 

        map.addLayer(wfs_layer); 
        map.addControl(new
OpenLayers.Control.Button({type:OpenLayers.Control.TYPE_BUTTON,title: 
        "Save Changes",displayClass: "olControlSaveFeatures",trigger:
function() { saveStrategy.save(); }); 
.... 














Ian Turton wrote:
> 
> On Fri, Sep 4, 2009 at 11:14 AM, cgp<carina_palanca at forcorp.com> wrote:
>>
>> And not just the normal shape files? I have got my SDE layers displaying
>> but
>> they are not saving at all. I tried working with normal shape files and
>> they
>> are all working fine.  Here is what I have:
>>
> 
> Does it work from the sample requests page of geoserver when you just
> paste in what you are sending?
> 
> This will tell you if you are sending a bad post from OpenLayers or if
> there is something wrong with your geoserver set up (in which case you
> should ask on geoserver-users not here)
> 
> Ian
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 

-- 
View this message in context: http://n2.nabble.com/Has-anyone-got-WFS-T-working-with-SDE-files-tp3580580p3617721.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list