The service enables you to view a translation table of bounces codes.
The operation returns an Array of BouncesCode objects with the code and name of each bounce code.
Parameters:
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);
//call the operation
inwise.ArrayOfBounceCode codes = inwiseWebServicesSoap.statisticsTranslateBouncesCodes();
Iterator<BounceCode> it=codes.getBounceCode().iterator();
while(it.hasNext())
{
BounceCode code = it.next();
int actionCode = code.getCode();//the bounce code
String actionName = code.getName();//bounce reason name
}
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
//call the operation
InwiseWebServices.BounceCode[] codes = ws.Statistics_TranslateBouncesCodes();
for (int i = 0; i < codes.Length; i++)
{
InwiseWebServices.BounceCode code = codes[i];
int actionCode = code.Code;//the bounce code
string actionName = code.Name;//bounce reason name
}
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
'call the operation
Dim codes() As InwiseWebServices.BounceCode = ws.Statistics_TranslateBouncesCodes()
Dim i As Integer
For i = 0 To codes.Length - 1 Step i + 1
Dim code As InwiseWebServices.BounceCode = codes(i)
Dim actionCode As Integer = code.Code 'the bounce code
Dim actionName As String = code.Name 'bounce reason name
Next