Does GeoServer output any diagnostic information? It might be in the body
of the REST response, but I'd expect more info in the server logs.
Off-hand, the only potential problem that I can think of is that you
reference styles that do not exist. I'm not sure what GeoServer does in
this case, but it's conceivable that it would blank out the style list.
--
David Winslow
OpenGeo - http://opengeo.org/
On Sun, Jan 27, 2013 at 5:40 AM, Jon Britton <[email protected]> wrote:
> Hi guys,
>
> A while ago I was using REST to allow a layer to use any style. To do this
> I was retrieving the XML for all styles from:
>
> http://localhost:8080/geoserver/rest/styles.xml
>
> I was then wrapping this XML like:
>
> <layer><!-- styles xml--></layer>
>
> and PUTting it to:
>
> http://localhost:8080/geoserver/rest/layers/mylayer.xml
>
> However this no longer works. Instead of setting the layers styles to the
> given styles, it get's given a single null style. For example, if I
> navigate to:
>
> http://localhost:8080/geoserver/rest/layers/mylayer.html
>
> It displays the styles as:
>
> Available styles: [null]
>
> Is this a bug or am I doing something wrong?
>
> Thanks,
>
> Jon
>
>
> ------------------------------------------------------------------------------
> Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
> MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
> with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
> MVPs and experts. ON SALE this month only -- learn more at:
> http://p.sf.net/sfu/learnnow-d2d
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 step-by-step video tutorials by Microsoft
MVPs and experts. ON SALE this month only -- learn more at:
http://p.sf.net/sfu/learnnow-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users