Discussions
Categories
- 17.9K All Categories
- 3.4K Industry Applications
- 3.3K Intelligent Advisor
- 63 Insurance
- 536.4K On-Premises Infrastructure
- 138.3K Analytics Software
- 38.6K Application Development Software
- 5.8K Cloud Platform
- 109.5K Database Software
- 17.5K Enterprise Manager
- 8.8K Hardware
- 71.1K Infrastructure Software
- 105.3K Integration
- 41.6K Security Software
How to reply to a message using Message Board REST API

969976
Member Posts: 1
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
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
Answers
-
Internal Server Error => There is an issue on the server side. Can you look in to the server logs?
Thanks,
Harsha
This discussion has been closed.