Waiting for engine...
Skip to main content

AS2 Connector Record object

AS2 Connector Records correspond to the document and trading partner details of the Process Reporting page. Processes send AS2 messages using the AS2 Client connector and receive AS2 messages using the AS2 Shared Server connector. The AS2 Connector Record object contains AS2-specific document information and user-defined tracked field information along with other fields.

Structure

<AS2ConnectorRecord>
<account/>
<executionId/>
<atomId/>
<dateProcessed/>
<id/>
<actionType/>
<connectorType/>
<connectorName/>
<operationName/>
<documentIndex/>
<successful/>
<size/>
<errorMessage/>
<ackStatus/>
<as2FromId/>
<as2ToId/>
<subject/>
<messageId/>
<mdnMessage/>
<contentLength/>
<filename/>
<mimetype/>
</AS2ConnectorRecord>
FieldTypeDescription
FilterFilterFilter
accountstringThe ID of the account this record was run in.
executionIdstringThe ID of the run.
atomIdstringThe ID of the Runtime that processed this record.
dateProcessedstring with the format yyyy-MM-dd'T'HH:mm:ss'Z' — for example, 2016-01-31T15:32:00ZThe processing date and time of this record.
idstringThe ID of this record.
actionTypestringThe type of action with which this record corresponds — Listen or Send.
connectorTypestringThe type of connector to which this record corresponds — as2 for AS2 Client (Send), as2sharedserver for AS2 Shared Server (Listen), or x12 for Trading Partner Send or Listen using the X12 standard.
connectorNamestringFor an AS2 Client (Send) operation, the value is the name of the AS2 Client connection component through which the document that corresponds to this record was sent. The value is as2sharedserver Connector for an AS2 Shared Server (Listen) operation, Trading Partner for an X12 trading partner Send operation, or Start for an X12 trading partner Listen operation.
operationNamestringThe name of the operation component that processed this record. The component is an AS2 Client operation in the case of a Send action or an AS2 Shared Server operation in the case of a Listen action.
documentIndexintThe numerical index of this record in the run.
successfulbooleanWhether the record is a success or error.
sizelongThe size, in bytes, of the document that corresponds to this record.
errorMessagestringThe error message associated with this record if applicable.
ackStatusstringThe acknowledgment status — Acknowledged, Acknowledged/Errors, or Not Acknowledged.
as2FromIdstringThe arbitrary identifier that indicates the sender of the message.
as2ToIdstringThe arbitrary identifier that indicates the recipient of the message.
subjectstringThe arbitrary subject name for the message.
messageIdstringThe arbitrary identifier for the message.
mdnMessagestringThe content of the Message Delivery Notification (MDN) message — processed, processed/error, processed/error: authentication-failed, processed/error: decompression-failed, or processed/error: decryption-failed. In a Listen action by the AS2 shared server, an MDN message generates automatically. For a Send action, generating an MDN message is an option for the processing AS2 Client operation.
contentLengthstringThe length of the message in bytes.
fileNamestringThe file name of the document that corresponds to this record.
mimetypestringThe MIME type of the message — text/plain, application/binary, application/edifact, application/octet-stream, application/edi-x12, or application/xml

Supported operations

GETQUERYCREATEUPDATEEXECUTEDELETE
Not supported Supported  Not supported Not supported Not supportedNot supported 

You can use the following fields as QUERY filters for the AS2 Connector Record object:

FieldAllowed values
FilterFilter
executionIdAny string value
atomIdAny string value
dateProcessedDate with the format yyyy-MM-dd'T'HH:mm:ss'Z', for example, 2016-01-31T15:32:00Z
idAny string value
actionTypeListen or Send
connectorTypeas2, as2sharedserver, or x12
connectorNameAny string value to filter by AS2 Client (Send) operations; or as2sharedserver Connector to filter by AS2 Shared Server (Listen) operations, Trading Partner to filter by X12 trading partner Send operations, or Start to filter by X12 trading partner Listen operations
operationNameAny string value
documentIndexAny numeric value
successfultrue or false
sizeAny numeric value
errorMessageAny string value
ackStatusAcknowledged, Acknowledged/Errors, Not Acknowledged
as2FromIdAny string value
as2ToIdAny string value
subjectAny string value
messageIdAny string value
mdnMessageprocessed, processed/error, processed/error: authentication-failed, processed/error: decompression-failed, processed/error: decryption-failed
contentLengthAny string value
filenameAny string value
mimetypetext/plain, application/binary, application/edifact, application/octet-stream, application/edi-x12, or application/xml

The operators allowed for the AS2 Connector Record object filters are:

  • EQUALS

  • STARTS_WITH

  • BETWEEN

  • GREATER_THAN

  • GREATER_THAN_OR_EQUAL

  • LESS_THAN

  • LESS_THAN_OR_EQUAL

However, it is important to note that the STARTS_WITH operator accepts only values that do not include spaces.

For general information about the structure of QUERY filters and how to handle the paged results, see the Query filters and Query paging topics.

SOAP implementation

The following example query returns all AS2 Connector records with an executionId of execution-01234567-89ab-cdef-0123-456789abcdef-2018.07.11.

Request:

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:api="http://api.platform.boomi.com/">
<soapenv:Header>
<wsse:Security
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="UsernameToken" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>ATOMSPHERE_USER_NAME</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">ATOMSPHERE_PASSWORD</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
<soapenv:Body>
<api:query>
<api:objectType>AS2ConnectorRecord</api:objectType>
<api:queryConfig>
<api:QueryFilter>
<api:expression operator="EQUALS" property="executionId"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="api:SimpleExpression">
<api:argument>execution-01234567-89ab-cdef-0123-456789abcdef-2018.07.11</api:argument>
</api:expression>
</api:QueryFilter>
</api:queryConfig>
</api:query>
</soapenv:Body>
</soapenv:Envelope>

Response:

<S:Envelope xmlns:S="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<S:Body>
<bns:queryResponse xmlns="http://api.platform.boomi.com/">
<bns:results numberOfResults="100">
<bns:queryToken>EXAMPLE_QUERY_TOKEN</bns:queryToken>
<bns:result xsi:type="bns:AS2ConnectorRecord">
<bns:account>account-123456</bns:account>
<bns:executionId>execution-01234567-89ab-cdef-0123-456789abcdef-2018.07.11</bns:executionId>
<bns:atomId>3456789a-bcde-f012-3456-789abcdef012</bns:atomId>
<bns:dateProcessed>2018-07-11T06:24:12Z</bns:dateProcessed>
<bns:id>connector-bcdef012-3456-789a-bcde-f0123456789a</bns:id>
<bns:actionType>Send</bns:actionType>
<bns:connectorType>as2</bns:connectorType>
<bns:connectorName>Sample AS2 connection</bns:connectorName>
<bns:operationName>Sample AS2 operation</bns:operationName>
<bns:documentIndex>0</bns:documentIndex>
<bns:successful>true</bns:successful>
<bns:size>654</bns:size>
<bns:ackStatus>Acknowledged</bns:ackStatus>
<bns:as2FromId>DASHER</bns:fromId>
<bns:as2ToId>DANCER</bns:toId>
<bns:subject>Sleigh Order 122518</bns:subject>
<bns:messageId>&lt;976473487.15.1527087239460.JavaMail.dasher@northpole&gt;</bns:messageId>
<bns:mdnMessage>processed</bns:mdnMessage>
<bns:contentLength>484</bns:contentLength>
<bns:filename>0000000122518.dat</bns:filename>
<bns:mimetype>application/octet-stream</bns:mimetype>
</bns:result>
...
<bns:result xsi:type="bns:AS2ConnectorRecord">
<bns:account>account-123456</bns:account>
<bns:executionId>execution-01234567-89ab-cdef-0123-456789abcdef-2018.07.11</bns:executionId>
<bns:atomId>3456789a-bcde-f012-3456-789abcdef012</bns:atomId>
<bns:dateProcessed>2018-07-11T06:25:02Z</bns:dateProcessed>
<bns:id>connector-bcdef012-3456-789a-bcde-f0123456789a</bns:id>
<bns:actionType>Send</bns:actionType>
<bns:connectorType>as2</bns:connectorType>
<bns:connectorName>Sample AS2 connection</bns:connectorName>
<bns:operationName>Sample AS2 operation</bns:operationName>
<bns:documentIndex>49</bns:documentIndex>
<bns:successful>true</bns:successful>
<bns:size>654</bns:size>
<bns:ackStatus>Acknowledged</bns:ackStatus>
<bns:as2FromId>DASHER</bns:fromId>
<bns:as2ToId>DANCER</bns:toId>
<bns:subject>Sleigh Order 122560</bns:subject>
<bns:messageId>&lt;976473487.15.1527087239502.JavaMail.dasher@northpole&gt;</bns:messageId>
<bns:mdnMessage>processed</bns:mdnMessage>
<bns:contentLength>610</bns:contentLength>
<bns:filename>0000000122560.dat</bns:filename>
<bns:mimetype>application/octet-stream</bns:mimetype>
</bns:result>
</bns:results>
</bns:queryResponse>
</S:Body>
</S:Envelope>

The maximum number of results returned per QUERY response is 100. This response includes a queryToken element, which means there are more than 100 results to retrieve. The Query paging topic describes how to use a queryMore call to retrieve more results.

On this Page