The service enables you to view a list of all error codes.
The operation returns an array with ErrorCode which contains each error code number and short description.
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.ArrayOfErrorCode errorCodes= inwiseWebServicesSoap.errorsGetErrorCodes();
Iterator<ErrorCode> it=errorCodes.getErrorCode().iterator();
while(it.hasNext())
{
ErrorCode code = it.next();
int errorNumber = code.getCode();//the error number
String errorDescription = code.getName();//a short description of the error
}
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.ErrorCode[] errorCodes= ws.Errors_GetErrorCodes();
for (int i = 0; i < errorCodes.Length; i++)
{
InwiseWebServices.ErrorCode code = errorCodes[i];
int errorNumber = code.Code;//the error number
string errorDescription = code.Name;//a short description of the error
}
VB Code:
'call the operation
Dim errorCodes() As InwiseWebServices.ErrorCode = ws.Errors_GetErrorCodes()
Dim i As Integer
For i = 0 To errorCodes.Length - 1 Step i + 1
Dim code As InwiseWebServices.ErrorCode = errorCodes(i)
Dim errorNumber As Integer = code.Code 'the error number
Dim errorDescription As String = code.Name 'a short description of the error
Next