I\'m getting 406 when i invoke the rest web service via android application.Can any one suggest me what is the error in this code and why i am getting this error ??
406 is returned by the server when it can't respond based on accepting the request headers (ie they have an Accept header which states they only want XML). Check the Accept header in response from the server and send the data appropriately.