-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi

Are you doing it in Java?

http://code.google.com/p/gsrcj/ is a Java client i wrote to configure GS
restfully with no dependencies except Java 1.5.

here is the full sourcecode:

http://code.google.com/p/gsrcj/source/browse/trunk/src/main/java/org/geopublishing/GsRest.java
containing the part you are looking for (SLD upload).

Feel free to use the project, give feedback or send in patches.

Greetings,
Steve

Am 18.11.2010 17:11, schrieb David Zwarg:
> Hello,
>
> I am using the REST config to add some layers and styles to geoserver.
> All is well when creating layers and styles. I've been following the
> examples and using the API reference, which are extremely helpful.
>
> I am running into a problem, though, with uploading SLDs. I am able to
> POST to /geoserver/rest/styles, and create a new style, but when I PUT
> to /geoserver/rest/styles/new_style with my file, I get an HTTP status
> of 500.  I look in catalina.out and see:
>
> com.thoughtworks.xstream.mapper.CannotResolveClassException:
> StyledLayerDescriptor : StyledLayerDescriptor
> ...
>
> So I figured my style wasn't uploaded. Incorrect! It did load, and is
> now displayed when I pull up the style in the admin section. Then I
> thought, maybe it just won't validate because it's formatted
> incorrectly. Incorrect again! The style validates in the admin interface.
>
> What am I doing wrong here?
> Thanks,
> David
>
>
>
>
-
------------------------------------------------------------------------------
> Beautiful is writing same markup. Internet Explorer 9 supports
> standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
> Spend less time writing and  rewriting code and more time creating great
> experiences on the web. Be a part of the beta today
> http://p.sf.net/sfu/msIE9-sfdev2dev
>
>
>
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users


- -- 
wiki² - Softwareentwicklung
Stefan A. Tzeggai, geb. Krüger
Straßburger Weg 26
53113 Bonn

email   tzeg...@wikisquare.de
phone   0228 24 000 528
mobile  0176 40 38 9559
webpage wikisquare.de
twitter http://twitter.com/geopublishing
skype   alfonx

reclaim your net - http://tor.eff.org
enforce privacy - http://www.pgpi.org
pgp key id: 51B576FD - http://pgp.mit.edu

Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkzmWRMACgkQdFDQR1G1dv3hswCgumi5d75dYQuTcPw/2P00x6wt
fs0AoMt6p7s+nZ4Rb6wmqj1RxGHnatNp
=n/rn
-----END PGP SIGNATURE-----

------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today
http://p.sf.net/sfu/msIE9-sfdev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to