Hi,
Tried calling the rest endpoint using DOJO to create a new style in Geoserver without any success. Tried both PUT and POST. Sample code below
Any ideas ?
var xhrArgs = {
url: “http://cp947sw:8080/geoserver/rest/styles/default_polygon.sld”,
postData: “”,
handleAs: “xml”,
headers: {“Content-Type”: “application/vnd.ogc.sld+xml; charset=UTF-8”},
load: function(data) {
alert(data);
},
error: function(error) {
alert(error);
}
}
//Call the asynchronous xhrPost
var deferred = dojo.xhrPost(xhrArgs);
–
Thanks and Warm Regards
Debasish Sahu