09-19-2014 11:05 AM
$.ajax({
url: Alfresco.constants.PROXY_URI + "mytest/",
type: "GET",
contentType: 'application/json',
success: function TestAjaxCall(response) {
console.log(response);
},
error: function test_error(response) {
console.log(response);
}
});
09-20-2014 12:48 AM
org.springframework.extensions.webscripts.servlet.mvc.EndPointProxyController
,in this controller class the request url is rebuild for data webscript request, during the rebuilding process ,the ending slash will be removed. url: Alfresco.constants.PROXY_URI + "mytest/"
will be submited to http://localhost:8080/alfresco/service/mytest
,which can't be found( in your desc.xml url is setted to "/mytest/") ,so changing "/mytest/" to "/mytest" will work.Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.