Hi,

firstly, I'm sorry if this got in the wrong place, I'm not sure where to
post this

I've been trying to use your 2.8+ sandbox to connect to an arcgis server.
I've finally got it even with internet explorer, using your example

...

wfs = new OpenLayers.Layer.Vector(
                                        "arcgis server wfs ",
                                        {
                                                strategies: [
                                                                bbox_strategy,
                                                                lock_strategy,
                                                                save_strategy
                                                ],
                                                protocol: new 
OpenLayers.Protocol.WFS2({

...

Now i'm trying to use the same code to connect to a geoserver. The idea is
to have map editing functionality in a web application, able to work with
both geoserver & arcgisServer. But i got the following error when inserting
to geoserver:





<!-- insert will generate error -->
        <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs";
                service="WFS" version="1.1.0" releaseAction="ALL">
                <wfs:Insert>
                        <wfs:tasmania_cities>
                                <wfs:the_geom>
                                        <gml:Point 
xmlns:gml="http://www.opengis.net/gml"; srsName="EPSG:4326">
                                                <gml:pos>145.89146484375 
-43.1480859375</gml:pos>
                                        </gml:Point>
                                </wfs:the_geom>
                        </wfs:tasmania_cities>
                </wfs:Insert>
        </wfs:Transaction>





        
<!--insert error response -->
        <ows:ExceptionReport version="1.0.0"
                xsi:schemaLocation="http://www.opengis.net/ows
http://localhost:8080/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="NoApplicableCode">
                        <ows:ExceptionText>
                                java.io.IOException: Current fid index is null, 
next must be called
before write()
                                Current fid index is null, next must be called 
before write()
                        </ows:ExceptionText>
                </ows:Exception>
        </ows:ExceptionReport>





when using the same code with arcgisServer, the following insert 






        <!-- insert ok -->
        <wfs:Transaction xmlns:wfs="http://www.opengis.net/wfs";
                version="1.0.0" service="WFS">
                <wfs:Insert>
                        <feature:tasmania_cities 
xmlns:feature="http://www.openplans.org/topp";>
                                <feature:the_geom>
                                        <gml:MultiPoint 
xmlns:gml="http://www.opengis.net/gml";>
                                                <gml:pointMember>
                                                        <gml:Point>
                                                                
<gml:coordinates decimal="." cs="," ts=" ">
                                                                        
147.407578125,-41.7418359375</gml:coordinates>
                                                        </gml:Point>
                                                </gml:pointMember>
                                        </gml:MultiPoint>
                                </feature:the_geom>
                        </feature:tasmania_cities>
                </wfs:Insert>
        </wfs:Transaction>





works fine. Moreover, after the error with geoserver, the wfs service
stopped responding. I'm using the default tasmania_ layers.


I'd like to know if you can help me with this particular error but also aid
me with a few pointers:

1) do you think this is the right/best way of doing it, or do you have other
sugestions?
2)does your sandbox/2.8+ breaks support for geoserver? i see it extending
wfs2protocol from wfsprotocol...
3) do you know if openlayers will integrate support for arcgis server?
4) if you can direct me to other sources of information on this, it would be
most welcome :)


-- 
View this message in context: 
http://n2.nabble.com/Samples-using-new-ArcGIS-JavaScript-API-in-OpenLayers-tp1829224p3236641.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to