Reading Validation and Error Information in Response Messages

A MSG element is contained within each PARAMS element when the system must convey validation or error information. For example, if a required element is missing from a request message, such as SERVICE_TYPE, or if an exception has occurred, a MSG element that contains information about the validation or error is included in the response.

The following example shows a response message for the authorization service. The information contained in each MSG element conveys validation or error information for the request:

<?xml version="1.0"?>
<soapenv:Envelope xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/" 
xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:wsa="http:
//schemas.xmlsoap.org/ws/2003/03/addressing/" xmlns:xsd="http://www.w3.org/
2001/XMLSchema/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance/">
  <soapenv:Header xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <wsse:Security soap:mustUnderstand="1" xmlns:soap="http://schemas.xmlsoap.
    org/wsdl/soap/" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401
    -wss-wssecurity-secext-1.0.xsd">
      <wsse:UsernameToken>
        <wsse:Username>PTDMO</wsse:Username>
      </wsse:UsernameToken>
    </wsse:Security>
  </soapenv:Header>
  <soapenv:Body xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/">
    <FindAccess xmlns="http://xmlns.oracle.com/Enterprise/Tools/schemas/
     PTCSSecurityReq.v1">

<PARAMARRAY>
   <PARAMS> 
        <SERVICEID>2</SERVICEID> 
        <SERVICE_INSTID/> 
        <ACCESS>F</ACCESS>
        <SERVICE_TYPE>CREF</SERVICE_TYPE>  
        <MSG>Market name is defaulted to 'GBL'</MSG> 
        <MSG>Portal name is defaulted to the default portal EMPLOYEE of the node 
          PT_LOCAL</MSG> 
         <MSG>Invalid Cref</MSG> 
   </PARAMS>

   <PARAMS> 
         <SERVICEID>1</SERVICEID> 
         <SERVICE_INSTID/> 
         <ACCESS>T</ACCESS>
         <SERVICE_TYPE>CREF</SERVICE_TYPE> 
                  <MSG>Market name is defaulted to 'GBL'</MSG> 
         <MSG>Portal name is defaulted to the default portal EMPLOYEE of the node 
           PT_LOCAL</MSG> 
         <MSG>Basic Security Cleared</MSG>
   </PARAMS>
</PARAMARRAY>

 </FindAccess>
</soapenv:Body>
</soapenv:Envelope>