To create Oracle WebCenter Collaboration discussion messages and reply messages from a remote application, use the IDiscussion interface in the Oracle WebCenter Interaction Development Kit (IDK).
Java
... //create the discussion message IDiscussionMessage discussionMessage = discussion.createDiscussionMessage(subject, body); //call store before asking for the id. discussionMessage.store(); int id = discussionMessage.getID(); String url = discussionMessage.getDetailsURL(); %> <tr> <td> <% out.println("<a href=\"" + url + "\">Link to collab message " + id + "</a>"); %> </td> </tr> ...
.NET (C#)
... //create the discussion message Plumtree.Remote.PRC.Collaboration.Discussion.IDiscussionMessage discussionMessage = discussion.CreateDiscussionMessage(subject, body); //call store before asking for the id. discussionMessage.Store(); int id = discussionMessage.ID; String url = discussionMessage.DetailsURL; %> <tr> <td colspan="6"> <% Response.Write("<a href=\"" + url + "\">Link to collab message " + id + "</a>"); %> </td> </tr> ...
.NET (VB)
... 'create the discussion message dim discussionMessage as Plumtree.Remote.PRC.Collaboration.Discussion.IDiscussionMessage = discussion.CreateDiscussionMessage(subject, body) 'call store before asking for the id. discussionMessage.Store() dim id as Integer = discussionMessage.ID dim url as String = discussionMessage.DetailsURL %> <tr> <td colspan="6"> <% Response.Write("<a href=""" & url & """>Link to collab message " & Cstr(id) & "</a>") %> </td> </tr> ...