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


Appendix B Schema Validation : Schema Validation Errors

Schema Validation Errors
This section explains SOAP fault and SOAP advisory messages that are displayed if schema validation fails.
Schema validation errors are accessed through Log Viewer by using TIBCO Administrator.
If schema validation fails on the initiator side for an outbound SOAP message, the SOAP advisory message on the ERROR subject on the initiator side has the complete details of the schema validation errors. These details are posted in the statusMsg field of the SOAP/Advisory AE message.
A sample 1.1 SOAP fault message structure with fault details looks as follows:

 
<SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
 <SOAP-ENV:Body>
  <SOAP-ENV:Fault>
   <faultcode>SOAP-ENV:Client</faultcode>
   <faultstring>Request not conforming to schema</faultstring>
   <faultactor>SOAPServer</faultactor>
   <detail>
    <ei:ErrorInfo xmlns:ei="http://www.tibco.com/namespaces/bc/2003/10/errorinfo.xsd">
    <code>922</code>
    <description>Request not conforming to schema</description>
    </ei:ErrorInfo>
   </detail>
  </SOAP-ENV:Fault>
 </SOAP-ENV:Body>
</SOAP-ENV:Envelope>

 
The schema for the ErrorInfo element is in the errorinfo.xsd file in the TIBCO_HOME/bc/version_number/protocols/soap/samples/schemas directory.
The SOAP advisory message is published both on the initiator and responder sides, with the statusMsg element containing the schema validation errors.
A SOAP/Advisory AE message is published on the ERROR subject with the schema validation errors in the statusMsg element.
If the schema validation fails when processing a response message on the initiator side, a SOAP/Advisory AE message is published on the ERROR subject with schema validation errors in the statusMsg element.

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