The result of a
Send request
Properties:
Name
|
Type
|
Description
|
IsSuccess
|
bool
|
A value indicating whether the create was successful
|
Ids
|
Array of string
|
The sending transaction Id
|
Error details
|
ErrorDetails
|
If the request was not successful, this will contain the error details
|
Java Code:
SendingResult sendResult = soapService.send(source, target);
if (sendResult.isIsSuccess()) {
String sendId = sendResult.getIds().getString().get(0);
return "Transaction Id: " + sendId;
} else {
ErrorDetails errorDetails = sendResult.getErrorDetails();
return Utils.BuildErrorMessage(errorDetails);
}
C# Code:
//// call the service
SendingResult sendResult
= service.Send(source, target);
//// check the results
if (sendResult.IsSuccess)
{
String
sendId = sendResult.Ids[0];
return "Transaction Id: " + sendId;
}
else
{
ErrorDetails
errorDetails = sendResult.ErrorDetails;
return Utils.BuildErrorMessage(errorDetails);
}
VB Code:
'' call the service
Dim sendResult
As SendingResult = service.Send(source, target)
'' check the results
If sendResult.IsSuccess
Then
Dim sendId As [String] = sendResult.Ids(0)
Return "Transaction Id: "
& sendId
Else
Dim errorDetails As ErrorDetails =
sendResult.ErrorDetails
Return Utils.BuildErrorMessage(errorDetails)
End If
Raw Xml:
<SendResult>
<IsSuccess>true</IsSuccess>
<ErrorDetails>
<Code>Success</Code>
</ErrorDetails>
<Ids>
<string>b2249f9776984a60bdebfdca6115eb5c</string>
</Ids>
<Status>
<MobileSendingStatus>SentToGateway</MobileSendingStatus>
</Status>
</SendResult>