regarding jquery with rest Service
after changed json instead of jsonp responses not coming,
i have tried following code using $.getJSON
$.getJSON(
'http://10.163.14.56:9000/customerservice/getDet',
function(data) {
jQuery.each(data, function(i,item) {
var consultant = item.consultant;
var consultantHtml = '<tr>' +
'<td>' + consultant.firstName + ' '
+ consultant.lastName + '</td>' +
'<td><a href="' + consultant.blogFeed + '">' +
'Blog Feed</a></td>' +
'</tr>';
jQuery("#consultants").append(consultantHtml);
});
}
);
am getting the following error:
Aug 7, 2012 10:39:03 AM org.apache.cxf.jaxrs.utils.JAXRSUtils findTargetMethod
WARNING: No operation matching request path "/customerservice/getDet&callback=jQuery17106262518336669487_1344316142219" is found, Relative Path: /getDet&callback=jQuery17106262518336669487_1344316142219, HTTP Method: GET, ContentType: */*, Accept: */*,. Please enable FINE/TRACE log level for more details.
please give the solution
thanks in advance