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
On Tue, Aug 13, 2013 at 3:29 PM, Amiala <belka91@anonymised.com> wrote:
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
------------------------------------------------------------------------------
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
Geoserver-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/geoserver-users