Hi,
I'm trying to upload a shape file with REST API. Here is the error I get : No such datastore: ws1,nete
I've installed version 1.7.5 together with the restconfig-1.7.5.jar plugin.
Here is what I do: 1) Create workspace ws1
curl -u admin:geoserver -v -XPOST -H 'Content-type: text/xml' -d 'ws1'localhost:8080/geoserver/rest/workspaces
2) Check workspace
curl -XGET -H 'Accept: text/xml' localhost:8080/geoserver/rest/workspaces/ws1
reply is ok
3) Upload shapefile
curl -u admin:geoserver -XPUT -H 'Content-type: application/zip' --data-binary @roads.zip localhost:8080/geoserver/rest/workspaces/ws1/datastores/roads/file.shp
Reply:
Warning: Couldn't read data from file "roads.zip", this makes an empty POST. Error occured unzipping file:error in opening zip
need help please!!!