Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to reply to a message using Message Board REST API

969976Oct 22 2012 — edited Jul 15 2013
Hi ,


I am trying to post a message using Message Board REST API by using the following code

WebResource webResource1 = client.resource("http://10.87.252.224:8888/rest/api/messageBoards/person/9D4EC81016AF11E2BFD87F6A9A6468C0? utoken=FLCPT4FwvhO9D96olVu0XZyGYZ1k_w**");
webResource1.addFilter(new HTTPBasicAuthFilter("xxxxxx","*******"));
String sendbymessage="{\"body\":\"It is test message\"}";
webResource1.type("application/json").post(sendbymessage);
System.out.println("done");
===
The problem is I am able to send a message to myself but when I am trying to post a message to another user , it is throwing a server side error

Exception in thread "main" com.sun.jersey.api.client.UniformInterfaceException: POST http://10.87.252.224:8888/rest/api/messageBoards/person/9D4EC81016AF11E2BFD87F6A9A6468C0?utoken=FLCPT4FwvhO9D96olVu0XZyGYZ1k_w** returned a response status of 500 Internal Server Error



Please give me some points to progress.



Regards,

Bhanu

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Aug 12 2013
Added on Oct 22 2012
1 comment
2,325 views