Java Client Send Message

From OpenIndivo Documentation Wiki

Jump to: navigation, search

This method set is used to send a message from one record owner to another record owner. The MessageType is similar to the DocumentType in that the message's content can be any XML. Currently, our viewer only supports text and html based messages.

Code examples

Sending a text based message

//authenticate to the server
String username = "username@indivohealth.org";
String password = "password";
AuthenticateResultType authResult = client.authenticate( username, password);
//send the message String recipientId = "recipient@indivohealth.org"; String priorThreadMessage = null; String subject = "Subject"; String messageText = "Test message"; SendMessageResultType result = client.sendMessage( authResult.getActorTicket(), recipientId, priorMessageThread, subject, messageText);
Personal tools