Hi , i have written Java code to call REST API’s .
i have written the code like
public List view_blogsbytagXml(String tag,String limit) {
System.out.println(tag+""+limit);
final String
VIEW_BLOGSBYTAG1=“api/blogs/tag/”+tag+".xml?limit="+limit+"";
//final String VIEW_BLOGSBYTAG="api/blogs/tag/"+tag+".xml";
return
webResource.path(VIEW_BLOGSBYTAG1).header(ConfigurationUtil.AUTHENTICATION_HEADER,
authentication)
.accept(MediaType.APPLICATION_XML_TYPE).get(new
GenericType<List>() {
});
}
to list all the blogs and limits the number of blogs to be listed by the
parameter limit.
when i used this one i am getting the 406 error .
But when i used the VIEW_BLOGSBYTAG i am not getting any error.
Pls give some suggestions .