The service enables you to load an existing message.
The operation returns an InwiseMessage object with the following fields set:
- Name - the display name of the message.
-
Body - the message body.
-
SendId - the send id of the message.
-
Subject - the message subject.
-
CreationDate - the create date of the message.
- UpdateDate - the last date the message was updated.
- Status - the status of the message.
0 means the message has never been sent.
1 means the message has been sent to a test group.
2 means the message has been sent to a real group.
Parameters:
-
int sendid
The send id of the message to load.
Java Code:
//get a reference to the service InwiseWebServices ws = new InwiseWebServices();
InwiseWebServicesSoap inwiseWebServicesSoap = ws.getInwiseWebServicesSoap();
//fill the security header
HeaderHandler hh = new HeaderHandler("myusername", "myPassword");
hh.setHeader(inwiseWebServicesSoap);
//the send id of the message to load
int sendid = 144;
//call the operation
inwise.InwiseMessage msg = inwiseWebServicesSoap.messagesGetMessage(sendid);
String name = msg.getName();
String body = msg.getBody();
String subject = msg.getSubject();
int status = msg.getStatus();
XMLGregorianCalendar createDate = msg.getCreationDate();
XMLGregorianCalendar updateDate = msg.getUpdateDate();
C# Code:
//get a reference to the service
InwiseWebServices.InwiseWebServices ws = new InwiseWebServices.InwiseWebServices();
//fill the security header
InwiseWebServices.SecHeader header = new InwiseWebServices.SecHeader();
header.username = "username";
header.pass = "myPassword";
ws.SecHeaderValue = header;//set credentials
//the send id of the message to load
int sendid = 144;
//call the operation
InwiseWebServices.InwiseMessage msg = ws.Messages_GetMessage(sendid);
string name = msg.Name;
string body = msg.Body;
string subject = msg.Subject;
int status = msg.Status;
DateTime createDate = msg.CreationDate;
DateTime updateDate = msg.UpdateDate;
VB Code:
'get a reference to the service
Dim ws As InwiseWebServices.InwiseWebServices = New InwiseWebServices.InwiseWebServices()
'fill the security header
Dim header As InwiseWebServices.SecHeader = New InwiseWebServices.SecHeader()
header.username = "username"
header.pass = "myPassword"
ws.SecHeaderValue = header 'set credentials
'the send id of the message to load
Dim sendid As Integer = 144
'call the operation
Dim msg As InwiseWebServices.InwiseMessage = ws.Messages_GetMessage(sendid)
Dim name As String = msg.Name
Dim body As String = msg.Body
Dim subject As String = msg.Subject
Dim status As Integer = msg.Status
Dim createDate As DateTime = msg.CreationDate
Dim updateDate As DateTime = msg.UpdateDate