The service enables you to send an existing message to a real group.
The operation returns "true" in case of a success, or "false" if the sending did not succeed.
Parameters:
-
int groupid
The id of the group.
-
int sendid
The send id of the message.
-
dateTime sendTime
The time to send the message.
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 for tracking the message
int sendid = 144;//You need to save this value for future queries
//the id of the test group
int groupid = 343;
//the sending date/time
XMLGregorianCalendar sendingDate=new XMLGregorianCalendarImpl();
Calendar c = Calendar.getInstance();
sendingDate.setTime(
c.get(Calendar.HOUR),
c.get(Calendar.MINUTE),
c.get(Calendar.SECOND));
sendingDate.setDay(c.get(Calendar.DAY_OF_MONTH));
sendingDate.setYear(c.get(Calendar.YEAR));
sendingDate.setMonth(c.get(Calendar.MONTH)+1);
//call the operation
boolean result = inwiseWebServicesSoap.sendingSendReal(sendid, groupid,sendingDate);
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 for tracking the message
int sendid = 144;//You need to save this value for future queries
//the id of the test group
int groupid = 19;
//the sending date/time
DateTime sendingDate=DateTime.Now;
//call the operation
bool result = ws.Sending_SendReal(sendid, groupid,sendingDate);
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 for tracking the message
Dim sendid As Integer = 144 'You need to save this value for future queries
'the id of the test group
Dim groupid As Integer = 343
'the sending date/time
Dim sendingDate As DateTime = DateTime.Now
'call the operation
Dim result As Boolean = ws.Sending_SendReal(sendid, groupid, sendingDate)