No problem, I could make my source available if you like. At the  
moment I have no access to the source, you should ping me next week  
again.

In my opinion, it does not make sense to create a java application  
using REST doing the same as the geoserver GUI. Batch configurations  
are individual and depend on your situation.

But I think it would make sense to have something like this for php
http://docs.geoserver.org/stable/en/user/extensions/rest/rest-config-examples-php.html

A similar documentation for java would help. Looking at my personal  
time schedule, I could start after 13th of September.

If you are interested, we could merge our Java experience and I will  
create the  documentation (which is written in sphinx).  Our you can  
do that and I will assist you. Again, give me a ping if you are still  
interested behind 13th of September.

Cheers
Christian


Quoting Brian Ghigiarelli <[email protected]>:

> Christian,
>
> A few days before reading this thread, I started building my own Java client
> for the Geoserver REST API.  Any chance you would want to team up with what
> you've already got and open source it to create a distributable JAR?
>  (Unless anyone knows of an existing JAR solution for this that I'm not
> aware of...)
>
> Thanks,
> Brian
>
> On Wed, Aug 18, 2010 at 10:33 PM, <[email protected]> wrote:
>
>> My Java application runs in its own VM and uses the Java URL class. I
>> am testing against 2.0.x at the moment, works fine. I will switch to
>> geoserver-trunk because of the new Virtual Table feature, doing it the
>> same way.
>>
>> What the hell are you doing with a packet sniffer ?. I simply looked
>> at the REST examples, did the same within a java test app and started
>> developing.
>>
>> Cheers
>> Christian
>>
>>
>> Quoting Robert Hicks <[email protected]>:
>>
>> > Luca, thanks for the response. Actually my mail client put those in
>> > separate lines, I ran everything in on one line. As far as the second
>> > failed call goes, that is kind of what I figured, but just wanted to
>> > try using an existing datastore.
>> >
>> > Christian, did you write a java application to interface with
>> > Geoserver using sockets or is this an extension of the application
>> > that has access to the underlying JVM? Like I mentioned in the very
>> > first email, I have an application that does the former well with
>> > 1.7.x versions of Geoserver but from poking around with a packet
>> > sniffer with 2.0.x it seems almost impossible. Which version are you
>> > using? I'd love to hear how you do it.
>> >
>> > On Mon, Aug 16, 2010 at 9:33 AM,  <[email protected]> wrote:
>> >> I configure geoserver with a java utility, no curl needed at all, Java
>> has
>> >> all you need :-)
>> >>
>> >> If you have problems coding with Java, please ask, I have simple to look
>> up
>> >> in my code.
>> >>
>> >>
>> >> Quoting Robert Hicks <[email protected]>:
>> >>
>> >>> Thanks for the responses everyone! I am on Windows using DOS, sorry
>> >>> should have said that from the beginning. I just tried it using Cygwin
>> >>> and now it says 'No such datastore: gv,roads'. So I'm guessing that is
>> >>> further than I was before!
>> >>>
>> >>> Basically the end goal is to be able to automate the creation of many
>> >>> feature types and this seems like the best way. The tool I'm planning
>> >>> on writing is going to be in Java so that it can run anywhere but if
>> >>> cURL is not platform independent that may be a problem.
>> >>>
>> >>> On Sat, Aug 14, 2010 at 5:38 PM, Andrea Aime <[email protected]>
>> wrote:
>> >>>>
>> >>>> Robert Hicks ha scritto:
>> >>>>>
>> >>>>> Okay so I have cURL installed locally and I'm trying to run some
>> tests
>> >>>>> against an instance of Geoserver running on another server. I'm
>> trying
>> >>>>> to create a datastore remotely using the below command (copied from
>> >>>>>
>> >>>>>
>> >>>>>
>> http://docs.geoserver.org/stable/en/user/extensions/rest/rest-config-examples-curl.html
>> )
>> >>>>>
>> >>>>> My command: curl -u admin:password -XPUT -H "Content-type:
>> >>>>> application/zip" --data-binary @states.zip
>> >>>>>
>> >>>>>
>> >>>>>
>> http://10.10.0.20:8001/geoserver/rest/workspaces/workspace/datastores/roads/states.shp
>> >>>>
>> >>>> Hmmm... using the command line I often have to put the url between
>> double
>> >>>> quotes:
>> >>>>
>> >>>> curl -u admin:password -XPUT -H "Content-type: application/zip"
>> >>>> --data-binary @states.zip
>> >>>>
>> >>>> "
>> http://10.10.0.20:8001/geoserver/rest/workspaces/workspace/datastores/roads/states.shp
>> "
>> >>>>
>> >>>> Not sure if this is needed by curl as well, but may be worth a try.
>> >>>>
>> >>>> Cheers
>> >>>> Andrea
>> >>>>
>> >>>>
>> >>>>> If fails with: curl: no URL specified!
>> >>>>> curl: try 'curl --help' or 'curl --manual' for more information
>> >>>>>
>> >>>>> So I tried --url http://10.10.0.20:8001/geoserver/rest, but I get
>> the
>> >>>>> same error. Anyone with experience using this gotten it to work?
>> >>>>>
>> >>>>> Thanks in advance!
>> >>>>>
>> >>>>
>> >>>>
>> >>>> --
>> >>>> Andrea Aime
>> >>>> OpenGeo - http://opengeo.org
>> >>>> Expert service straight from the developers.
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>> --
>> >>> web http://www.hyxspace.com
>> >>> aim hyx1138
>> >>>
>> >>>
>> >>>
>> ------------------------------------------------------------------------------
>> >>> This SF.net email is sponsored by
>> >>>
>> >>> Make an app they can't live without
>> >>> Enter the BlackBerry Developer Challenge
>> >>> http://p.sf.net/sfu/RIM-dev2dev
>> >>> _______________________________________________
>> >>> Geoserver-users mailing list
>> >>> [email protected]
>> >>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>> >>>
>> >>
>> >>
>> >>
>> >> ----------------------------------------------------------------
>> >> This message was sent using IMP, the Internet Messaging Program.
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> > --
>> > web http://www.hyxspace.com
>> > aim hyx1138
>> >
>>
>>
>>
>> ----------------------------------------------------------------
>> This message was sent using IMP, the Internet Messaging Program.
>>
>>
>>
>>
>> ------------------------------------------------------------------------------
>> This SF.net email is sponsored by
>>
>> Make an app they can't live without
>> Enter the BlackBerry Developer Challenge
>> http://p.sf.net/sfu/RIM-dev2dev
>> _______________________________________________
>> Geoserver-users mailing list
>> [email protected]
>> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>>
>
>
>
> --
> Brian Ghigiarelli
> 570-878-9139
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



------------------------------------------------------------------------------
This SF.net email is sponsored by 

Make an app they can't live without
Enter the BlackBerry Developer Challenge
http://p.sf.net/sfu/RIM-dev2dev 
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to