Hi David,

You will need to install the rest-config module. Depending on the version
of Geoserver you are running you have to pick up the rest-config from
Geoserver 2.0.2 download page.

http://downloads.sourceforge.net/geoserver/geoserver-2.0.2-restconfig-plugin.zip

Glad to see more Geoserver users in CSIRO.

Cheers,

Tisham.

> Do you have restconfig.jar ? rest.jar is not the configuration API, it is
> just generic rest routing support.
>
> --
> David Winslow
> OpenGeo - http://opengeo.org/
>
> On Fri, Mar 18, 2011 at 11:10 AM, <david.mi...@csiro.au> wrote:
>
>>  Hi all
>>
>>
>>
>> I am interested in using the GeoServer Rest API and continually get the
>> following error:
>>
>>
>>
>> curl -u admin:geoserver -v -XPOST -H "Content-type: text/xml" -d
>> "<workspace><name>acme</name></workspace>"
>> http://localhost:8080/geoserver/rest/workspaces
>>
>> * About to connect() to localhost port 8080 (#0)
>>
>> *   Trying 127.0.0.1... connected
>>
>> * Connected to localhost (127.0.0.1) port 8080 (#0)
>>
>> * Server auth using Basic with user 'admin'
>>
>> > POST /geoserver/rest/workspaces HTTP/1.1
>>
>> > Authorization: Basic YWRtaW46Z2Vvc2VydmVy
>>
>> > User-Agent: curl/7.21.4 (i386-pc-win32) libcurl/7.21.4 zlib/1.2.5
>>
>> > Host: localhost:8080
>>
>> > Accept: */*
>>
>> > Content-type: text/xml
>>
>> > Content-Length: 40
>>
>> >
>>
>> < HTTP/1.1 405 Method Not Allowed
>>
>> < Allow: GET
>>
>> < Date: Fri, 18 Mar 2011 03:47:21 GMT
>>
>> < Server: Noelios-Restlet-Engine/1.0..8
>>
>> < Transfer-Encoding: chunked
>>
>> <
>>
>> * Connection #0 to host localhost left intact
>>
>> * Closing connection #0
>>
>>
>>
>> I have checked that rest is installed and I can confirm that the
>>  rest-2.0.2.jar is installed in WEB-INF/lib.  Is this all I need do to
>> install rest?
>>
>>
>>
>> I have also enabled anonymous get as per the example in the
>> rest.properties
>> file.
>>
>>
>>
>> Is there something I have missed?
>>
>>
>>
>> Really appreciate any help
>>
>>
>>
>> Kind regards
>>
>>
>>
>> David
>>
>>
>>
>> [image: cid:image002.jpg@01C9F81A.1BD371D0]
>>
>> *  Dr David Miron*
>>
>> *  IT Tools Manger*
>>
>> *  Australian Biosecurity Intelligence Network*
>>
>> *  A Commonwealth Government NCRIS funded initiative.*
>>
>> * *
>>
>>
>>
>> *                     Australian Biosecurity Online*
>>
>>
>>
>> *Email: **dmi...@abin.org.au <smcma...@abin.org.au>*
>>
>> *Mobile: 0400616540*
>>
>> *Address: School of Science and Technology, University of New England,
>> Armidale NSW 2351*
>>
>>
>>
>> This e-mail (including any attachments) contains information that may be
>> confidential and is only intended for the use of the person/s to whom it
>> is
>> addressed. If you are not the intended addressee, or you have received
>> this
>> e-mail in error, you must not disclose, copy or distribute it or use the
>> information contained in it (or any attachments) in any way. In that
>> case,
>> please delete this message and any copies of it. If you have received
>> this
>> e-mail in error, please notify the Australian Biosecurity Intelligence
>> Network by return e-mail.  Please also contact us if you have any doubts
>> about the authenticity of this e-mail.  This e-mail (including any
>> attachments) may also contain computer viruses or other defects. The
>> Australian Biosecurity Intelligence Network (lead agent - CSIRO) is not
>> liable for any loss or damage that may be caused by these viruses or
>> defects.
>>
>>
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> Colocation vs. Managed Hosting
>> A question and answer guide to determining the best fit
>> for your organization - today and in the future.
>> http://p.sf.net/sfu/internap-sfd2d
>> _______________________________________________
>> Geoserver-users mailing list
>> Geoserver-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>>
> ------------------------------------------------------------------------------
> Colocation vs. Managed Hosting
> A question and answer guide to determining the best fit
> for your organization - today and in the future.
> http://p.sf.net/sfu/internap-sfd2d_______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>



------------------------------------------------------------------------------
Enable your software for Intel(R) Active Management Technology to meet the
growing manageability and security demands of your customers. Businesses
are taking advantage of Intel(R) vPro (TM) technology - will your software 
be a part of the solution? Download the Intel(R) Manageability Checker 
today! http://p.sf.net/sfu/intel-dev2devmar
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to