Dear all,
I need to update layer using REST methods.
I have posted layer to GeoServer using publishDBLayer method, which send a
POST request.
Then I created method updateDBLayer in GeoServerRESTPublisher class which do
exactly the same as publishDBLayer method, but insteed of calling
HTTPUtils.postXml, I called HTTPUtils.putXml.
I copy this logic from GeoServerRESTPublisher.updateStyle.

And I got the following exception: 
HTTPUtils:send:315 - Bad response: code[405] msg[Method Not Allowed]
url[http://host_name:8080/geoserver/rest/workspaces/My_workspace/datastores/ds_My_dataStore/featuretypes]
method[PutMethod]: 

My question is:
How to update layer using GeoServerRESTPublisher?
Should I do it in another way?
Best regards, Amiala



--
View this message in context: 
http://osgeo-org.1560.x6.nabble.com/Update-layer-using-REST-methods-tp5072300.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Get 100% visibility into Java/.NET code with AppDynamics Lite!
It's a free troubleshooting tool designed for production.
Get down to code-level detail for bottlenecks, with <2% overhead. 
Download for free and get started troubleshooting in minutes. 
http://pubads.g.doubleclick.net/gampad/clk?id=48897031&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to