EsdMessageErrorMOE Sample

Use the EsdMessageErrorMOE to send an error message back to the GMC. Notice the original message that caused a problem is included in the "<OriginalMessage>" node. An "<ErrorResponse>" node explains the problem. This example is for a DeallocateChild.

<?xml version="1.0"?>
<EsbEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.ci.org/ci/messaging/common/2011/04/">
      <EsbHeader>
            <SendersAppName>ConnectorToNLSFDCOffRampService</SendersAppName>
            <SendersName>CI\[string]</SendersName>
            <SendersTrackingId>[string]</SendersTrackingId>
            <FromAddress>[string]</FromAddress>
            <MessageType>http://schemas.ci.org/ci/messaging/common/2012/02/EsdMessageErrorMOE</MessageType>
            <ToAddress>GMCCompass</ToAddress>
            <RequestId>[string]</RequestId>
            <EventSequenceNumber>nn</EventSequenceNumber>
            <MessageId>[GUID]</MessageId>
            <ParentMessageId>[GUID]</ParentMessageId>
            <SendingNode>ConnectorToxxOffRampService</SendingNode>
            <RelatesTo relationship="ReplyTo">[GUID]</RelatesTo>
      </EsbHeader>
      <EsbBody>
            <EsdMessageErrorMOE xmlns="http://schemas.ci.org/ci/messaging/common/2012/02/">
                  <OriginalMessage><![CDATA[

<EsbEnvelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://schemas.ci.org/ci/messaging/common/2011/04/">
      <EsbHeader>
            <SendersAppName>CompassEventProcessor</SendersAppName>
            <SendersName>CI\IPPass</SendersName>
            <SendersTrackingId>[GUID]</SendersTrackingId>
            <FromAddress>GMCCompass</FromAddress>
            <MessageType>http://schemas.ci.org/ci/messaging/compass/2013/02/DeallocateChild</MessageType>
            <ToAddress>[string]</ToAddress>
            <RequestId>[GUID]</RequestId>
            <EventSequenceNumber>nn</EventSequenceNumber>
            <MessageId>[GUID]</MessageId>
            <ParentMessageId>[GUID]</ParentMessageId>
            <SendingNode>EsdMessageRouterEndpoint</SendingNode>
      </EsbHeader>
      <EsbBody>
            <DeallocateChild>
                  <PartnerCountryCode>[string]</PartnerCountryCode>
                  <ChildId>[string]</ChildId>
                  <NeedKey>[string]</NeedKey>
                  <Event>Deallocation</Event>
                  <TransactionDate>11-10-2013</TransactionDate>
                  <SentDate>08-05-2014</SentDate>
                  <ChildType>CDSPChild</ChildType>
            </DeallocateChild>
      </EsbBody>
</EsbEnvelope>]]></OriginalMessage>
                  <ErrorResponse xmlns="http://schemas.ci.org/ci/services/common/2011/04/">
                        <DateTimestamp>2014-08-07T17:02:41.9751356+02:00</DateTimestamp>
                        <ErrorId>5ce0f632-c0a5-40c6-b62c-e9637266dd40</ErrorId>
                        <ErrorName>CNL.OffRamp.Exceptions.MessageDeliveryException</ErrorName>
                        <ServiceName>NServiceBus.Host, Version=4.6.0.0, Culture=neutral, PublicKeyToken=9fc386479f8a226c</ServiceName>
                        <SendersAppName></SendersAppName>
                        <ErrorMessage>The version of the message type is not supported. </ErrorMessage>
                  </ErrorResponse>
            </EsdMessageErrorMOE>
      </EsbBody>
</EsbEnvelope>

Docs Navigation