Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved


Chapter 2 Process Flows and Functionalities : SOAP Fault

SOAP Fault
TIBCO BusinessConnect SOAP Protocol supports SOAP fault in both versions 1.1 and 1.2. For inbound messages, when an exception or error occurs, TIBCO BusinessConnect SOAP Protocol generates a SOAP fault in the same version as the incoming message, and sends back the SOAP fault to the trading partner.
1.
Populate the value in the soapFault > Code > Value field as your faultCode.
2.
Populate the value in the soapFault > Reason > ReasonText > content field as your faultString.
3.
Populate the value in the soapFault > Role field as your faultActor.
Sample of a SOAPFault in Version 1.1

 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/">
 <SOAP-ENV:Body>
  <SOAP-ENV:Fault>
   <faultcode>SOAP-ENV:Server</faultcode>
   <faultstring>Server Error</faultstring>
   <faultactor>SOAPClient</faultactor>
   <detail>
     <ei:ErrorInfo xmlns:ei="http://www.tibco.com/
namespaces/bc/2002/04/errorinfo.xsd">
     <code>922</code>
     <description>Actual error from schema validation</description>
     </ei:ErrorInfo>
   </detail>
  </SOAP-ENV:Fault>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 
Sample of a SOAPFault in Version 1.2

 
<env:Envelope xmlns:env="http://www.w3.org/2003/05/soap-envelope"
xmlns:m="http://www.example.org/timeouts"
xmlns:xml="http://www.w3.org/XML/1998/namespace">
 <env:Body>
<env:Fault>
<env:Code>
<env:Value>env:Sender</env:Value>
<env:Subcode>
<env:Value>m:MessageTimeout</env:Value>
</env:Subcode>
</env:Code>
<env:Reason>
<env:Text xml:lang="en">Sender Timeout</env:Text>
</env:Reason>
<env:Detail>
<m:MaxTime>P5M</m:MaxTime>
</env:Detail>
</env:Fault>
</env:Body>
</env:Envelope>

 

Copyright © TIBCO Software Inc. All Rights Reserved
Copyright © TIBCO Software Inc. All Rights Reserved