You're right, with the extension installed the command line works better :)
I need to improve my geoserver skills
Thank you David for your help, I really appreciate !

Best regards

Arnaud

On Wed, Oct 20, 2010 at 5:22 PM, David Winslow <[email protected]> wrote:
> "405 Method not allowed" refers to the HTTP Method (PUT, GET, POST, DELETE)
> used in your request.  This is the error that geoserver returns when you try
> to POST to something that is not a collection, for example.  However, the
> URL in your pasted code looks all right to me.
> Have you installed the RESTConfig extension?  I know that you can use
> RESTConfig to create or update layergroups because I have done both in
> mapnik2geotools.  I will attempt to extract some documentation for the user
> manual from that code, but it may be some time before I am able to do so.
> --
> David Winslow
> OpenGeo - http://opengeo.org/
> On Wed, Oct 20, 2010 at 11:06 AM, Arnaud Vandecasteele
> <[email protected]> wrote:
>>
>> David,
>>
>> In my previous mail I forgot to mention that no new layergroup have
>> been created.
>>
>> As you toild me, I do it again with the -v option and here is the result :
>>
>> * About to connect() to myGeoserver.org port 80 (#0)
>> *   Trying ***.***.**.***... connected
>> * Connected to myGeoserver.org (194.167.55.210) port 80 (#0)
>> * Server auth using Basic with user 'admin'
>> > POST /geoserver/rest/layergroups HTTP/1.1
>> > Authorization: Basic cm9vdDphemVydA==
>> > User-Agent: curl/7.19.7 (i486-pc-linux-gnu) libcurl/7.19.7
>> > OpenSSL/0.9.8k zlib/1.2.3.3 libidn/1.15
>> > Host: myGeoserver.org
>> > Accept: */*
>> > Content-Type: text/xml
>> > Content-Length: 3578
>> > Expect: 100-continue
>> >
>> < HTTP/1.1 100 Continue
>> < HTTP/1.1 405 Method Not Allowed
>> < Date: Wed, 20 Oct 2010 14:57:09 GMT
>> < Server: Noelios-Restlet-Engine/1.0..8
>> < Allow: GET
>> < Content-Length: 0
>> < Content-Type: text/plain
>> <
>> * Connection #0 to host myGeoserver.org left intact
>> * Closing connection #0
>>
>>
>> I hope this informations mean something for you because for me it's
>> like chinese :)
>>
>> Regards
>>
>> Arnaud
>>
>> On Wed, Oct 20, 2010 at 2:39 PM, David Winslow <[email protected]>
>> wrote:
>> > Many RESTConfig actions return no text if they are successful.  If you
>> > look
>> > in the web UI, is your new layergroup available?
>> > You can try adding a "-v" flag to your curl command to get more
>> > information
>> > about the HTTP request and response.  If your layergroup wasn't created,
>> > could you include a copy of that output in this thread?
>> > --
>> > David Winslow
>> > OpenGeo - http://opengeo.org/
>> >
>> > On Wed, Oct 20, 2010 at 5:44 AM, Arnaud Vandecasteele
>> > <[email protected]>
>> > wrote:
>> >>
>> >> So,
>> >>
>> >> I tried to do that :
>> >>
>> >> ---------
>> >> curl -u user:mdp -XPOST -d @sismarisTestArnaud.xml -H 'Content-Type:
>> >> text/xml' http://myGeoServerPath/geoserver/rest/layergroups
>> >> ---------
>> >>
>> >> But nothing happen. Do you see anything wrong ?
>> >>
>> >> Regards
>> >>
>> >> Arnaud
>> >>
>> >>
>> >> On Wed, Oct 20, 2010 at 11:27 AM, Arnaud Vandecasteele
>> >> <[email protected]> wrote:
>> >> > I think this documentation will help me a lot :
>> >> >>
>> >> >>
>> >> >> http://docs.geoserver.org/2.0.0/user/extensions/rest/rest-config-examples-curl.html#creating-a-layer-group
>> >> >
>> >> > I will try with this solution.
>> >> >
>> >> > Regards
>> >> >
>> >> > Arnaud
>> >> >
>> >> > On Wed, Oct 20, 2010 at 11:11 AM, Arnaud Vandecasteele
>> >> > <[email protected]> wrote:
>> >> >> David,
>> >> >>
>> >> >> Tank you for your quick answer.
>> >> >> But I'm not really familiar with geoserver (but I try to do) :)
>> >> >> Could you just explain me how to use a rest config to do it ?
>> >> >>
>> >> >> Best regards
>> >> >>
>> >> >> Arnaud
>> >> >>
>> >> >> On Mon, Oct 18, 2010 at 8:05 PM, David Winslow
>> >> >> <[email protected]>
>> >> >> wrote:
>> >> >>> The UI doesn't provide a facility for this, but I think it would be
>> >> >>> pretty
>> >> >>> straightforward in RESTConfig; just download the XML for the
>> >> >>> source,
>> >> >>> change
>> >> >>> the <name> element, and PUT it to the destination.
>> >> >>> --
>> >> >>> David Winslow
>> >> >>> OpenGeo - http://opengeo.org/
>> >> >>>
>> >> >>> On Mon, Oct 18, 2010 at 12:51 PM, Arnaud Vandecasteele
>> >> >>> <[email protected]> wrote:
>> >> >>>>
>> >> >>>> Hi all,
>> >> >>>>
>> >> >>>> I got two layer groups in my geoserver architecture. One for a
>> >> >>>> pre-prod map and another one for the production map.
>> >> >>>> But I have very often to swap between the pre-prod and the
>> >> >>>> producion.
>> >> >>>> And all the change I made in the preo-prod layer groups I have to
>> >> >>>> do
>> >> >>>> it again for the production layer groups.
>> >> >>>> So i would like to know if it's possible to apply/replace all I
>> >> >>>> did
>> >> >>>> before in my layer pre-prod to the production layers group .
>> >> >>>> Do you know how can I do that ?
>> >> >>>>
>> >> >>>> Tanks for your help.
>> >> >>>>
>> >> >>>> Best regards
>> >> >>>>
>> >> >>>> Arnaud
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>>
>> >> >>>> ------------------------------------------------------------------------------
>> >> >>>> Download new Adobe(R) Flash(R) Builder(TM) 4
>> >> >>>> The new Adobe(R) Flex(R) 4 and Flash(R) Builder(TM) 4 (formerly
>> >> >>>> Flex(R) Builder(TM)) enable the development of rich applications
>> >> >>>> that
>> >> >>>> run
>> >> >>>> across multiple browsers and platforms. Download your free trials
>> >> >>>> today!
>> >> >>>> http://p.sf.net/sfu/adobe-dev2dev
>> >> >>>> _______________________________________________
>> >> >>>> Geoserver-users mailing list
>> >> >>>> [email protected]
>> >> >>>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>> >> >>>
>> >> >>>
>> >> >>
>> >> >>
>> >> >>
>> >> >> --
>> >> >> --------------------------------------------------------------------
>> >> >> Van De Casteele Arnaud
>> >> >> Mines Paris Tech - CRC
>> >> >> Sophia-Antipolis
>> >> >> 0698 24 25 29
>> >> >> SIG - WebMapping - SOLAP - BI - GeoCollaboration
>> >> >>
>> >> >> Web Site
>> >> >> http://geotribu.net/
>> >> >> http://www.sismaris.org/
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> > --
>> >> > --------------------------------------------------------------------
>> >> > Van De Casteele Arnaud
>> >> > Mines Paris Tech - CRC
>> >> > Sophia-Antipolis
>> >> > 0698 24 25 29
>> >> > SIG - WebMapping - SOLAP - BI - GeoCollaboration
>> >> >
>> >> > Web Site
>> >> > http://geotribu.net/
>> >> > http://www.sismaris.org/
>> >> >
>> >>
>> >>
>> >>
>> >> --
>> >> --------------------------------------------------------------------
>> >> Van De Casteele Arnaud
>> >> Mines Paris Tech - CRC
>> >> Sophia-Antipolis
>> >> 0698 24 25 29
>> >> SIG - WebMapping - SOLAP - BI - GeoCollaboration
>> >>
>> >> Web Site
>> >> http://geotribu.net/
>> >> http://www.sismaris.org/
>> >
>> >
>>
>>
>>
>> --
>> --------------------------------------------------------------------
>> Van De Casteele Arnaud
>> Mines Paris Tech - CRC
>> Sophia-Antipolis
>> 0698 24 25 29
>> SIG - WebMapping - SOLAP - BI - GeoCollaboration
>>
>> Web Site
>> http://geotribu.net/
>> http://www.sismaris.org/
>
>



-- 
--------------------------------------------------------------------
Van De Casteele Arnaud
Mines Paris Tech - CRC
Sophia-Antipolis
0698 24 25 29
SIG - WebMapping - SOLAP - BI - GeoCollaboration

Web Site
http://geotribu.net/
http://www.sismaris.org/

------------------------------------------------------------------------------
Nokia and AT&T present the 2010 Calling All Innovators-North America contest
Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
$10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing
Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store 
http://p.sf.net/sfu/nokia-dev2dev
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to