Heads Up :
The post you are writing will appear in a public forum. Please ensure all content is appropriate for public consumption. Review the employee guidelines for the community here.
Created by: Vinay Kanakath on 15-01-2013 08:39:36 AM Hi there, I was able to post the data in xml format successfully, but while trying to post the same data in json format i am getting 404 exception, in the code i am convering java object to json format and try to post that json data, then I am getting the following exception. {"statusCode":404,"startIndex":0,"itemsPerPage":0,"totalResults":0,"filtered":false,"sorted":false,"entry":[],"serverMessages":[{"code":"QUAD-502","description":"No such entity","message":"No Group exists with the primary key 12345"}]} for xml data i am sending this way input = new StringEntity( "" + post.getTitle() + "" + post.getBody() + ""+post.getType()+"" + ""+post.getPermissions().getPrincipal().getId()+"http://quad.cisco.com/schema/1.0/community" + ""+post.getPermissions().getPermissionFlags().isView()+""+post.getPermissions().getPermissionFlags().isEdit()+""+post.getPermissions().getPermissionFlags().isComment()+"" + ""+post.getPermissions().getPermissionFlags().isShare()+""+post.getPermissions().getPermissionFlags().isAuthorize()+"" + "tag2tag3" + "tag4"); then it's working fine, inseted of this If I send in json format through that exception. Can anyone help me to clear this exception. Thanks,
Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community: