XML Business Rule Failure Response Code

Coordinator
Apr 6, 2010 at 3:02 PM
For the 'XML Business Rule Failure' use case, from the 'IAB e-Business Standards v1.1: Technical Specifications' document, should the response code returned in the acknowledgement message be the same value as the response code for the 'XML Success' use case? Can it be a different value to indicate a company business rule hasn't been meet? For example if '0' is the response code to indicate XML Success scenario, must '0' also be used for the XML Business Rule Failure scenario or can it be a '1'? The specifications state the message response standard doesn't support the communication of individual trading partner business rule failures through message responses. Does this statement only apply to the communication of the failure details or does it also include indication of the occurrence of a failure? Thanks, Sandy
Coordinator
Apr 6, 2010 at 3:49 PM

Acknowledgement schema has an Exception element.

In case of the XML Business Rule Failure, the Exception element could provide info. This will be the very efficient way to let the document sender know about problems with document processing.

Arkadiy Dikshteyn,

Harris Corporation.

Apr 13, 2010 at 4:27 PM

As per IAB_E-Business_Techinical_Specifications_1.2

Use Case Table(Page No:5)

ID Field:

We can use ID field value in response code to specify the type of Error in the Acknowledgement.

For example:  if an xml error and HTTP Header values mismatch.  

<Acknowledgement xmlns="http://ns.iab.net" xmlns:ebiz="http://ns.ebizformedia.com">

  <ReceiptAcknowledged>true</ReceiptAcknowledged>

  <UniqueMessageID idOwner="Agency">

    <IdValue>12486910-364b-4c7b-9def-3f23e7580a17</IdValue>

  </UniqueMessageID>

  <ResponseCode>05</ResponseCode>

  <Exception>

    <ExceptionIdentifier>1</ExceptionIdentifier>

    <ExceptionSeverity>Fatal</ExceptionSeverity>

    <ExceptionMessage>Message ID Mismatch.</ExceptionMessage>

  </Exception>

</Acknowledgement>

Similarly, we can use Response code 7 for Business rule failure

Response Code

Response Code( ID)

Use case

1

Complete Failure

2

Authentication Failure

3

Malformed Http Parameters

4

System Error

5

XML Error

6

XML Success

7

XML Business Rule Failure

Thanks, Rao