406 error in calling REST API's

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 .

On 14 September 2010 08:23, Aruna C. [email protected]
wrote:

VIEW_BLOGSBYTAG1=“api/blogs/tag/”+tag+“.xml?limit=”+limit+“”;
}
Posted via http://www.ruby-forum.com/.


To unsubscribe from this list, please visit:

http://xircles.codehaus.org/manage_email

I think you may have meant to post this to a different list?

I think some poking around either with a browser or curl will help you
though.

Cheers,

James