[Geoserver-users] (WFS Client on geoserver) UPDATE transaction

Hi,
I’m french, so sorry for my bad english :wink:
I’ve developped a wfs client in c++ and i’m testing it on geoserver.
The server is v1.4.0 Win32, datas are on a PostGIS Server, the user used for the postgis database have admin right (so he can insert, delete, etc…).
WFS Server if on “Complete” Service Level.
I’m currently working on “wfs:Update”, my client send an update request using the POST Method.
It seems alright because i get the “SUCCESS” answer, but when i check the feature member I just updated, all the properties are the same as before. Like there was no update request at all.

Thanks for your help !!

Here is a part of my request (Removed a lot of wfs:Property)

<wfs:Transaction
xmlns:wfs=“http://www.opengis.net/wfs
service=“WFS”
version=“1.1.0”
xmlns:gml=" http://www.opengis.net/gml"
xmlns:ogc=“http://www.opengis.net/ogc
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
<wfs:Update wfs:typeName=“topp:states”>
wfs:Property
wfs:Namestate_fips</wfs:Name>
wfs:Value08</wfs:Value>
</wfs:Property>
ogc:Filter
<ogc:FeatureId fid=“states.6”/>
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>

And what the server is answering me:

<wfs:WFS_TransactionResponse
version=“1.0.0”
xmlns:wfs=" http://www.opengis.net/wfs"
xmlns:ogc=“http://www.opengis.net/ogc
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=“http://www.opengis.net/wfs http://xxx.xxx.xxx.xxx:xxxx/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd”>
wfs:TransactionResult
wfs:Status
wfs:SUCCESS/
</wfs:Status>
</wfs:TransactionResult>
</wfs:WFS_TransactionResponse>

Hi Jeremy,

First off if you can you might want to consider moving to the latest stable 1.5 version of GeoServer, 1.5.1. The difference between 1.4.x and 1.5.x are quite substantial.

However... it would help if we could get a look at the entire log from the server during the request. Could you turn logging to ALL in the user interface, execute the request and send us the log?

Thanks.

-Justin

Jeremy DERRAC wrote:

Hi,
I'm french, so sorry for my bad english :wink:
I've developped a wfs client in c++ and i'm testing it on geoserver.
The server is v1.4.0 Win32, datas are on a PostGIS Server, the user used for the postgis database have admin right (so he can insert, delete, etc...).
WFS Server if on "Complete" Service Level.
I'm currently working on "wfs:Update", my client send an update request using the POST Method.
It seems alright because i get the "SUCCESS" answer, but when i check the feature member I just updated, all the properties are the same as before. Like there was no update request at all.

Thanks for your help !!

Here is a part of my request (Removed a lot of wfs:Property)

    <wfs:Transaction
              xmlns:wfs="http://www.opengis.net/wfs&quot;
              service="WFS"
              version="1.1.0"
              xmlns:gml=" http://www.opengis.net/gml&quot;
              xmlns:ogc="http://www.opengis.net/ogc&quot;
              xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
    <wfs:Update wfs:typeName="topp:states">
    <wfs:Property>
      <wfs:Name>state_fips</wfs:Name>
      <wfs:Value>08</wfs:Value>
    </wfs:Property>
    <ogc:Filter>
      <ogc:FeatureId fid="states.6"/>
    </ogc:Filter>
    </wfs:Update>
    </wfs:Transaction>

And what the server is answering me:

    <wfs:WFS_TransactionResponse
                  version="1.0.0"
                  xmlns:wfs=" http://www.opengis.net/wfs&quot;
                  xmlns:ogc="http://www.opengis.net/ogc&quot;
                  xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance&quot;
                  xsi:schemaLocation="http://www.opengis.net/wfs
    http://xxx.xxx.xxx.xxx:xxxx/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd">
      <wfs:TransactionResult>
         <wfs:Status>
             <wfs:SUCCESS/>
         </wfs:Status>
      </wfs:TransactionResult>
    </wfs:WFS_TransactionResponse>

!DSPAM:4007,4693a7af25701431913854!

------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

!DSPAM:4007,4693a7af25701431913854!

------------------------------------------------------------------------

_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4693a7af25701431913854!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Hi.

I'm a new geoserver user. We developed a polygon database, which works well,
but I am having some problems with raster information. I have been trying to
use Grid binary format, but I don't know if it is possible and how can I
program that.

Thanks for your help

Carlos Alberto

Carlos Alberto Arnillas ha scritto:

Hi.

I'm a new geoserver user. We developed a polygon database, which works well, but I am having some problems with raster information. I have been trying to use Grid binary format, but I don't know if it is possible and how can I program that.

Grid binary format as in Arc/Info binary grid? We can't read that format. I suggest you use gdal utilities (www.gdal.org) to translate
it to a format we can read, such as GeoTIFF (the best supported option).

Cheers
Andrea

Here is the log file for an update: http://rafb.net/p/10379i58.html
Sorry for response time, my previous mail was rejected because it was too long.
It's the log on a 1.5 GeoServer, same problem. There is some weird log
entry at the end. I'm investigating this. My xml is missing
declaration (<? ...) i'm now adding it to see if it's the cause of the
problem

Thanks for your help
-- Jeremy

2007/7/10, Justin Deoliveira <jdeolive@anonymised.com>:

Hi Jeremy,

First off if you can you might want to consider moving to the latest
stable 1.5 version of GeoServer, 1.5.1. The difference between 1.4.x and
1.5.x are quite substantial.

However... it would help if we could get a look at the entire log from
the server during the request. Could you turn logging to ALL in the user
interface, execute the request and send us the log?

Thanks.

-Justin

Jeremy DERRAC wrote:
> Hi,
> I'm french, so sorry for my bad english :wink:
> I've developped a wfs client in c++ and i'm testing it on geoserver.
> The server is v1.4.0 Win32, datas are on a PostGIS Server, the user used
> for the postgis database have admin right (so he can insert, delete,
> etc...).
> WFS Server if on "Complete" Service Level.
> I'm currently working on "wfs:Update", my client send an update request
> using the POST Method.
> It seems alright because i get the "SUCCESS" answer, but when i check
> the feature member I just updated, all the properties are the same as
> before. Like there was no update request at all.
>
> Thanks for your help !!
>
> Here is a part of my request (Removed a lot of wfs:Property)
>
> <wfs:Transaction
> xmlns:wfs="http://www.opengis.net/wfs&quot;
> service="WFS"
> version="1.1.0"
> xmlns:gml=" http://www.opengis.net/gml&quot;
> xmlns:ogc="http://www.opengis.net/ogc&quot;
> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance&quot;&gt;
> <wfs:Update wfs:typeName="topp:states">
> <wfs:Property>
> <wfs:Name>state_fips</wfs:Name>
> <wfs:Value>08</wfs:Value>
> </wfs:Property>
> <ogc:Filter>
> <ogc:FeatureId fid="states.6"/>
> </ogc:Filter>
> </wfs:Update>
> </wfs:Transaction>
>
> And what the server is answering me:
>
> <wfs:WFS_TransactionResponse
> version="1.0.0"
> xmlns:wfs=" http://www.opengis.net/wfs&quot;
> xmlns:ogc="http://www.opengis.net/ogc&quot;
> xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance&quot;
> xsi:schemaLocation="http://www.opengis.net/wfs
> http://xxx.xxx.xxx.xxx:xxxx/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd">
> <wfs:TransactionResult>
> <wfs:Status>
> <wfs:SUCCESS/>
> </wfs:Status>
> </wfs:TransactionResult>
> </wfs:WFS_TransactionResponse>
>
> !DSPAM:4007,4693a7af25701431913854!
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
>
> !DSPAM:4007,4693a7af25701431913854!
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
> !DSPAM:4007,4693a7af25701431913854!

--
Justin Deoliveira
The Open Planning Project
http://topp.openplans.org

Well, i fixed the declaration with correct encoding, switched to the latest STABLE release of geoserver, found a bug in my app (shame on me :p) the first field was not set correctly and wasnt updated :-/
Now it work on all field ^^

Thx for the help.
Sorry for taking your time.
– Jeremy

2007/7/11, Jeremy DERRAC <jderrac@anonymised.com>:

Here is the log file for an update: http://rafb.net/p/10379i58.html
Sorry for response time, my previous mail was rejected because it was too long.
It’s the log on a 1.5 GeoServer, same problem. There is some weird log
entry at the end. I’m investigating this. My xml is missing
declaration (<? …) i’m now adding it to see if it’s the cause of the
problem

Thanks for your help
– Jeremy

2007/7/10, Justin Deoliveira <jdeolive@anonymised.com>:

Hi Jeremy,

First off if you can you might want to consider moving to the latest
stable 1.5 version of GeoServer, 1.5.1. The difference between 1.4.x and
1.5.x are quite substantial.

However… it would help if we could get a look at the entire log from
the server during the request. Could you turn logging to ALL in the user
interface, execute the request and send us the log?

Thanks.

-Justin

Jeremy DERRAC wrote:

Hi,
I’m french, so sorry for my bad english :wink:
I’ve developped a wfs client in c++ and i’m testing it on geoserver.
The server is v1.4.0 Win32, datas are on a PostGIS Server, the user used
for the postgis database have admin right (so he can insert, delete,
etc…).
WFS Server if on “Complete” Service Level.
I’m currently working on “wfs:Update”, my client send an update request
using the POST Method.
It seems alright because i get the “SUCCESS” answer, but when i check
the feature member I just updated, all the properties are the same as
before. Like there was no update request at all.

Thanks for your help !!

Here is a part of my request (Removed a lot of wfs:Property)

<wfs:Transaction
xmlns:wfs=" http://www.opengis.net/wfs"
service=“WFS”
version=“1.1.0”
xmlns:gml=" http://www.opengis.net/gml"
xmlns:ogc=“http://www.opengis.net/ogc
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance">
<wfs:Update wfs:typeName=“topp:states”>
wfs:Property
wfs:Namestate_fips</wfs:Name>
wfs:Value08</wfs:Value>
</wfs:Property>
ogc:Filter
<ogc:FeatureId fid=" states.6"/>
</ogc:Filter>
</wfs:Update>
</wfs:Transaction>

And what the server is answering me:

<wfs:WFS_TransactionResponse
version=“1.0.0”
xmlns:wfs=" http://www.opengis.net/wfs "
xmlns:ogc=“http://www.opengis.net/ogc
xmlns:xsi=" http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation=“http://www.opengis.net/wfs
http://xxx.xxx.xxx.xxx:xxxx/geoserver/schemas/wfs/1.0.0/WFS-transaction.xsd”>
wfs:TransactionResult
wfs:Status
wfs:SUCCESS/
</wfs:Status>
</wfs:TransactionResult>
</wfs:WFS_TransactionResponse>

!DSPAM:4007,4693a7af25701431913854!



This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/

!DSPAM:4007,4693a7af25701431913854!



Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

!DSPAM:4007,4693a7af25701431913854!


Justin Deoliveira
The Open Planning Project
http://topp.openplans.org