Skip to content
Last updated

Error Handling

The Portal SOAP API uses result codes and exception arrays to communicate operation status and errors.

Response Structure

Every operation response includes:

FieldTypeDescription
{Operation}ResultintResult code (0 = success, non-zero = error)
exceptionArrayOfStringArray of error messages
gstintGST amount in cents
chargeExgstintCharge excluding GST in cents
chargeAccountstringAccount charged
sourceDateTimestringTimestamp of the response

Result Codes

CodeDescription
0Success - operation completed successfully
1General error - check exception array for details
2Authentication error - invalid session or account
3Validation error - invalid input parameters
4Not found - requested resource does not exist
5Permission denied - insufficient access rights

Common Error Messages

Authentication Errors

ErrorCauseSolution
"Invalid session"Session has expired or is invalidRe-authenticate to obtain a new session ID
"Account not found"Account ID is incorrectVerify your account ID
"Access denied"Account lacks required permissionsContact support to verify account permissions

Validation Errors

ErrorCauseSolution
"Invalid date format"Date not in expected formatUse YYYY-MM-DD format for dates
"Required field missing"Mandatory parameter not providedCheck WSDL for required fields
"Invalid subscription ID"Subscription does not existVerify subscription ID exists

Resource Errors

ErrorCauseSolution
"Title not found"Volume/folio does not existVerify the title reference
"Application not found"Application ID invalidUse a valid application ID
"Certificate unavailable"Certificate cannot be orderedCheck certificate availability

SOAP Fault Handling

In addition to application-level errors, the service may return SOAP faults for transport or server errors:

<soap:Fault>
  <faultcode>soap:Server</faultcode>
  <faultstring>Internal server error</faultstring>
  <detail>
    <error>Service temporarily unavailable</error>
  </detail>
</soap:Fault>
  1. Check Result Code - Always check the {Operation}Result field first
  2. Parse Exceptions - If result is non-zero, iterate through the exception array
  3. Handle SOAP Faults - Catch and handle SOAP fault exceptions in your client
  4. Implement Retry Logic - For transient errors, implement exponential backoff

Example Error Response

<NotificationListResponse>
  <NotificationListResult>2</NotificationListResult>
  <notificationTable/>
  <exception>
    <string>Invalid session ID</string>
    <string>Please re-authenticate</string>
  </exception>
  <gst>0</gst>
  <chargeExgst>0</chargeExgst>
  <chargeAccount/>
  <sourceDateTime>2024-01-15T10:30:00Z</sourceDateTime>
</NotificationListResponse>

Support

If you encounter persistent errors or need assistance troubleshooting, contact: data.services@servictoria.com.au

Include in your support request:

  • Your account ID
  • The operation being called
  • The complete error message
  • Timestamp of the error
  • Your customer reference (if used)