Internal Message Format for Response Messages
The internal format for response messages parallels that for request messages, and has the same basic MIME structure. These messages are frequently referred to as IBResponse messages.
There are three logical components to a MIME response message: the IBResponse header section, the IBInfo section, and the Content section.
The following code shows an example of a response message:
Message-ID: <32004392.1143500580241.JavaMail.KCOLLIN2@PLE-KCOLLIN2>
Date: Mon, 27 Mar 2006 15:03:00 -0800 (PST)
Mime-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_4_9069393.1143500580221"
Content-ID: PeopleSoft-Integration-Broker-Internal-Mime-Message
PeopleSoft-ToolsRelease: 8.55
------=_Part_4_9069393.1143500580221
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-ID: IBInfo
<?xml version="1.0"?><IBInfo><Status><StatusCode>0</StatusCode>
<MsgSet>158</MsgSet>
<MsgID>10000</MsgID><DefaultTitle>Integration Broker Response
Message</DefaultTitle>
</Status><ContentSections><ContentSection><ID>ContentSection0</ID>
<NonRepudiation>N</NonRepudiation></ContentSection></ContentSections></IBInfo>
------=_Part_4_7210339.1008355101202
IBResponse Header
The first part of a response message contains headers which describe the attributes of the whole message.
Message-ID: <32004392.1143500580241.JavaMail.KCOLLIN2@PLE-KCOLLIN2>
Date: Mon, 27 Mar 2006 15:03:00 -0800 (PST)
Mime-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_4_9069393.1143500580221"
Content-ID: PeopleSoft-Integration-Broker-Internal-Mime-Message
PeopleSoft-ToolsRelease: 8.55
IBResponse IBInfo Section
The format for the XML for the IBInfo for a response message is different than that for the request message. The following is a sample (formatted for easier reading):
<?xml version="1.0"?>
<IBInfo>
<Status>
<StatusCode>0</StatusCode>
<MsgSet>158</MsgSet>
<MsgID>10000</MsgID>
<DefaultMsg>OK</DefaultMsg>
<DefaultTitle>Integration Broker Response Message</DefaultTitle>
</Status>
<ContentSections>
<ContentSection>
<ID>ContentSection0</ID>
<NonRepudiation>N</NonRepudiation>
</ContentSection>
</ContentSections>
</IBInfo>
The following is the list of all the elements that may be present in the IBInfo for a response message:
| Element | Description |
|---|---|
|
IBInfo / Status / StatusCode |
Describes the result of the request. The possible values are:
|
|
IBInfo / Status / MsgSet |
The MessageSetNumber for this message in the Message Catalog. Message set number 158 is assigned to the PeopleSoft Integration Broker. |
|
IBInfo / Status / MsgID |
The Message Number for this message in the Message Catalog. If no errors occurred during the processing of the request, the MsgID will be set to the value ‘10000’. |
|
IBInfo / Status / DefaultTitle |
Used if the message catalog is unavailable. This value corresponds to the “Message Text” for a given entry in the message catalog. |
|
IBInfo / Status / DefaultMsg |
Used if the message catalog is unavailable. This value corresponds to the “Explanation” for a given entry in the message catalog. |
|
IBInfo / Status / Parameters |
Parameters may be used to provide additional information for error responses. |
|
IBInfo / ContentSection |
A description of the content section returned with the response. Note: Not all response messages will have a content section. The structure of the content section and all child elements is the same as was seen in the request IBInfo. |
IBResponse Content Section
The content section of a response message features the message body only when working with SyncRequests
<?xml version="1.0"?>
<TestXml>This is a sample response message.</TestXml>
Error Codes and Message Catalog Entries
A response message may contain data relating to the processing of the request message, or it may contain error information if there were problems in fulfilling the request.
The status code describes the nature of the response message. The following table describes possible request message status codes and their meaning.
| Value | Meaning | Description |
|---|---|---|
|
0 |
Success |
The message transport and processing were successful. |
|
10 |
Retry |
The transport was not successful. PeopleSoft Integration Broker will perform its retry logic and send the message again. |
|
20 |
Error |
An error occurred. |
|
30 |
Duplicate message |
The transaction ID for the message has already been received. |
|
40 |
Acknowledgement error |
This status is used for SOAP messages and indicates that the contents of the data is not proper, but the transport was successful. |
|
50 |
Acknowledgement hold |
Used for asynchronous chunking of messages from PeopleSoft to PeopleSoft nodes when sending multiple message segments. |
All PeopleSoft Integration Broker error messages are stored in the message catalog. A short and long description for every error can be found there. Catalog entries are given a number, and this number is used in the response messages.
Here is a sample error message:
Message-ID: <32004392.1143500580241.JavaMail.KCOLLIN2@PLE-KCOLLIN2>
Date: Mon, 27 Mar 2006 15:03:00 -0800 (PST)
Mime-Version: 1.0
Content-Type: multipart/related;
boundary="----=_Part_4_9069393.1143500580221"
Content-ID: PeopleSoft-Integration-Broker-Internal-Mime-Message
PeopleSoft-ToolsRelease: 8.55
------=_Part_25_2235074.1008270392277
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
Content-Disposition: inline
Content-ID: IBInfo
<?xml version="1.0"?><IBInfo><Status><StatusCode>10</StatusCode>
<MsgSet>158</MsgSet><MsgID>10721</MsgID><Parameters count="1"><Parm>404</Parm></Parameters>
<DefaultTitle>Integration Gateway Error</DefaultTitle></Status></IBInfo>
------=_Part_25_2235074.1008270392277--
All PeopleSoft Integration Broker errors use message set 158. The actual error seen here is 10721. Going to the message catalog, the description for message set 158, error 10721 is:
Message Text: Integration Gateway - External System Contact Error
Explanation: Integration Gateway was not able to contact the external system.
The network location specified may be incorrect, or the site is permanently
or temporarily down.
Therefore this error was created by the integration gateway when it tried to send a request message to an external system.