Tuesday, May 7, 2013

The XML Logger

In my last post, I promised to try to bring us up to date on the current implementation of the logging framework, and specifically the XML Logger component of it.  The framework is initialized on the Application Start event making all these methods available from script.  From an XML Logging perspective, it can be initiated in one of two ways:

  • As a standard business service from within the Integration WF (or business service).  In this approach, just before the outbound WS or HTTP call, you would call the logRequest or logResponse methods of the framework business service, passing in at a minimum the property set about to be interfaced.  There are many other attributes of the payload record which can be optionally used which I won't go into detail over.  You can always add attributes to meet your needs and you don't need to populate any of them really.
  • As a Filter Service.  This is used for Web Services and is useful in that it can be turned on or off without modifying any existing Integration WFs.  On the Web Service admin views, for each web service operation that you want to log, just specify the Request/Response Filter Service as the Framework business service and the Request/Response Filter Method as logRequest/logResponse respectively.

Ok, now for the nitty gritty.  What do the logRequest/logResponse methods do?  Both are similar and different only in that all interface logging records have a placeholder for a request and a response payload, which the two methods are differentiated to populate.  The main input to these methods is an XML payload.  At a high level, here is the algorithm:
  1. Navigate the property set until the first 'ListOf*' tag is found which is assumed to be the beginning of the Integration Object data.
  2. Call a method to Parse the remaining child data to correctly name and categorize the interface based on the IO Type and iddentify the record id and unique identifier attributes.  This allows for optional scripting to tailor the logging service to your client's unique needs
  3. Call the logInterface method which:
    1. Checks if in an EAI Transaction.  If so, add the payload to an array, otherwise continue (This is currently only implemented to support outbound interfaces when using the Filter service implementation)
    2. Creates a session record if one does not already exist (Inbound interfaces executed by an EAI OM typically)
    3. Deal with anonymous logins (when used on an inbound interface the request method will be executed under the Anonymous login but the response method with be performed by the interface user id)
    4. Creates a payload record to store the attributes extracted from the payload parsing
    5. Split the payload into chunks no larger than the BLOB length and create detail records for each chunk
First the logRequest and logResponse Methods.  Like I said they are very similar except for which field the payload is passed to.  Also the logResponse method has some additional logic for parsing SOAP faults.

function logRequest(Inputs,Outputs) {
/* ***********************************
Created by Mik Branchaud on 09/20/11
Purpose: Log interface request from/to an external interface in the session log
Usage: In Web Service definition, operations applet, set the Request Filter BS to 'CMI Utilities'
  and the method to logRequest.  Clear the cache
Arguments: 1 - SoapMessage will implicily be passed as a child property set
**************************************** */
try {
    logStack("logRequest", 5);
    var soapEnv, soapBody, divePS;
    var bodyType="";
    var msgType="";
    var parseResults = new Object();
    var key = TheApplication().Utility.TimeStamp();
    var max = 3;
    var dives = 0;
    
    if(Inputs.GetChildCount() > 0) {
  try { // Try to process the message to get functional data 
         // Get the SOAP envelope from the SOAP hierarchy
         soapEnv = Inputs.GetChild(0);        //Like env:Envelope
         for (var i=0; i < soapEnv.GetChildCount(); i++) {   
             bodyType = soapEnv.GetChild(i).GetType();    //Like env:Body
             if (bodyType.toUpperCase() == "BODY" || bodyType.substr(bodyType.indexOf(":")+1).toUpperCase() == "BODY") {
                 soapBody = soapEnv.GetChild(i);
          for (var j=0; j < soapBody.GetChildCount(); j++) {   
                  msgType = soapBody.GetChild(j).GetType();  //Full Port name of the WS 
                  if (msgType.indexOf(":") >= 0)  msgType = msgType.substr(msgType.indexOf(":")+1); //strip namespace
                  if (msgType.indexOf(" ") >= 0)  msgType = msgType.substr(0, msgType.indexOf(" ")); //strip namespace declaration
                  if (msgType.indexOf("_") >= 0)  msgType = msgType.substr(0, msgType.lastIndexOf("_"));//strip port operation
  
    divePS = soapBody.GetChild(j); //.GetChild(0)
    while (divePS.GetType().indexOf("ListOf") < 0 && dives <= max) {
     if (divePS.GetChildCount() > 0) {
      divePS = divePS.GetChild(0);
      dives++;
     } else dives = max + 1;
    }

    if (divePS.GetType().indexOf("ListOf") >= 0) parseInterface(divePS, parseResults);
    else parseInterface(soapBody, parseResults);
   }
                 break;
             }
         }         
  } catch(e) {
   //If an error occurs while parsing, just try to write the message whole
  }
          
        if (msgType != "") {
         msgType = msgType.replace(/_spc/g, "");
         key = msgType+"_"+key;
        }
        TheApplication().SetProfileAttr("InterfaceKeyInbound", key)
        logInterface(key, soapEnv, null, null, parseResults.recId, parseResults.recBC, "Pending", msgType, null, null, null, null, parseResults.ref1);
    } // Inputs.GetChildCount()
    Outputs.InsertChildAt(soapEnv,0);
} catch(e) {
    RaiseError(e);
} finally {
 divePS = null;
 soapBody = null;
 soapEnv = null;
 parseResults =  null;
 logUnstack(msgType, 5);
}
}

function logResponse(Inputs,Outputs) {
/* ***********************************
Created by Mik Branchaud on 09/20/11
Purpose: Log interface response from/to an external interface in the session log
Usage: In Web Service definition, operations applet, set the Response Filter BS to 'CMI Utilities'
  and the method to logResponse.  Clear the cache
Arguments: 1 - SoapMessage will implicily be passed as a child property set
**************************************** */
try {
    logStack("logResponse", 5);
//TheApplication().TraceOn("/opt/siebel81/siebsrvr/enterprises/SBA_81/edad669/log/XTrace-Resp-"+TheApplication().LoginName()+".log", "Allocation", "All");
    var soapEnv, soapBody, divePS;
    var bodyType="";
    var msgType="";
    var parseResults = new Object();
    var fault=null;
    var key = TheApplication().GetProfileAttr("InterfaceKeyInbound");
    var max = 3;
    var dives = 0;

    if(Inputs.GetChildCount() > 0) {
  try { // Try to process the message to get functional data
         // Get the SOAP envelope from the SOAP hierarchy
         soapEnv = Inputs.GetChild(0);
         logVars("soapEnv Child Count", soapEnv.GetChildCount(), 5);
         for (var i=0; i < soapEnv.GetChildCount(); i++) {
             bodyType = soapEnv.GetChild(i).GetType();
             logVars("soapEnv Child Type", bodyType, 5);
             if (bodyType.toUpperCase() == "BODY" || bodyType.substr(bodyType.indexOf(":")+1).toUpperCase() == "BODY") {
                 soapBody = soapEnv.GetChild(i);
           for (var j=0; j < soapBody.GetChildCount(); j++) {   
                  msgType = soapBody.GetChild(j).GetType();
                  logVars("Body Child Type", msgType, 5);
                  if (msgType.indexOf(":") >= 0)  msgType = msgType.substr(msgType.indexOf(":")+1)
                  if (msgType.indexOf(" ") >= 0)  msgType = msgType.substr(0, msgType.indexOf(" "))
                  if (msgType.indexOf("_") >= 0)  msgType = msgType.substr(0, msgType.lastIndexOf("_"))
                  
                  if (msgType.toUpperCase() == "FAULT") fault = soapBody.GetChild(j).GetProperty("faultstring");
                  else {
       divePS = soapBody.GetChild(j);
       while (divePS.GetType().indexOf("ListOf") < 0 && dives <= max) {
                    logVars("Current Dive Type", divePS.GetType(), 5);
        if (divePS.GetChildCount() > 0) {
         divePS = divePS.GetChild(0);
         dives++;
        } else dives = max + 1;
       }
 
       if (divePS.GetType().indexOf("ListOf") >= 0) parseInterface(divePS, parseResults);
                  }
     }
                 break;
             }
         }
  } catch(e) {
   //If an error occurs while parsing, just try to write the message whole
  }
        
        logVars("key", key, "Fault", fault, 5);
        if (key == "") {
            key = TheApplication().Utility.TimeStamp();
         if (msgType != "") {
          msgType = msgType.replace(/_spc/g, "");
          key = msgType+"_"+key;
         }
        }
        
        if (fault != null) {
            logInterface(key, null, soapEnv, null, parseResults.recId, parseResults.recBC, "error", null, null, fault);
        } else {
         var recId = (parseResults.recId != "" ? parseResults.recId : null);
         var recBC = (parseResults.recBC != "" ? parseResults.recBC : null);
         var ref1 = (parseResults.ref1 != "" ? parseResults.ref1 : null);
            logInterface(key, null, soapEnv, null, recId, recBC, "Complete", msgType, null, null, null, null, ref1);
        }
    } // Inputs.GetChildCount()
    Outputs.InsertChildAt(soapEnv,0);
} catch(e) {
    RaiseError(e);
} finally {
 divePS = null;
 soapBody = null;
 soapEnv = null;
 parseResults =  null;
    logUnstack(msgType, 5);
}
}

The parseInterface method passes the ListOf container of the Integration Object to a switch statement where each BC type can be evaluated.  This useful only when using the Filter Service triggering mechanism otherwise the Record Id and Interface Name attributes can just be explicitly passed as parameters.  A case section should be created for each Integration Object being processed.
function parseInterface(ListOfIC, oReturn) {    //Input ListOfIC is a ListOf...
//Called from logRequest and logResponse to parse a message and get the row id or reference ids of different
//objects
 try {
     logStack("parseInterface", 5);
  if (ListOfIC.GetChildCount() > 0) {
   var IC = ListOfIC.GetChild(0);   //Integration Component Instance
   var icNameSpace = "";
   var intCompType = IC.GetType();
   var propName;
      var stop = false;
   var childIC;
      var childFlds;
      
   if (intCompType.indexOf(":") >= 0) {
    icNameSpace = intCompType.substr(0, intCompType.indexOf(":")+1);
    intCompType = intCompType.substr(intCompType.indexOf(":")+1);
   }
   logVars("Integration Component", intCompType, "Namespace", icNameSpace, 5);

   //For these types, dive an additional level
      switch(intCompType) {
       case "ATPCheckInterfaceRequestOrders":
        IC = IC.GetChild(0);
        intCompType = IC.GetType();
     if (intCompType.indexOf(":") >= 0) {
      icNameSpace = intCompType.substr(0, intCompType.indexOf(":")+1);
      intCompType = intCompType.substr(intCompType.indexOf(":")+1);
     }
     logVars("Integration Component", intCompType, "Namespace", icNameSpace, 5);
        break;
      }
 
   for (var flds = 0; flds < IC.GetChildCount(); flds++) { //Loop through Fields
    propName = IC.GetChild(flds).GetType();
    switch (intCompType) {
     case "Quote":
     case "SWIQuote":
      oReturn.recBC = "Quote";
      if (propName == icNameSpace+"Id") {
       oReturn.recId = IC.GetChild(flds).GetValue();
       stop = true;
      }
      break;

     case "ProductIntegration":
      oReturn.recBC = "Internal Product";
      if (propName == icNameSpace+"ListOfProductDefinition") {
       childIC = IC.GetChild(flds).GetChild(0);
       for (childFlds = 0; childFlds < childIC.GetChildCount(); childFlds++) { //Loop through Fields
        propName = childIC.GetChild(childFlds).GetType();
        if (propName == icNameSpace+"Id" || propName == icNameSpace+"ProductId") {
         oReturn.recId = childIC.GetChild(childFlds).GetValue();
         stop = true;
        }
        if (stop) break;                              
       }
      }
      break;
     
     default:
      logVars("Integration Component", intCompType, "Default", icNameSpace+"Id", 4);
      if (propName.indexOf("Id") >= 0) {
       oReturn.recId = IC.GetChild(flds).GetValue();
       stop = true;
      }
      oReturn.recBC = intCompType;
      stop = true;
    }
    if (stop) break;                              
   }
  }
 } catch(e) {
     RaiseError(e);
 } finally {
  childIC = null;
  IC = null;
     logUnstack("", 5);
 }
}

The logInterface method is called by both logRequest and logResponse to manage the session records for inbound interfaces and create the actual payload record.  I will have to go into more detail about the Anonymous login processing at some other time.  Suffice to say this works under a variety of web service setups.
function logInterface(key, request, response, dir, recId, recBC, status, srcObject, name, logText, userText, retCode, ref1, ref2, ref3)
{
try {
 logStack("logInterface", 5);
 logVars("key", key, "Record Id", recId, "Record BC", recBC, "Global Session Row Id", gSessionId, "Hold Buffer", gHoldBuffer, "Guest Login", gsGuest, 5);
 
 var found:Boolean = false;
 var sessionId:String = "";
 var guestSessionId:String = "";
 var guestSessionFound = false;
 var createSession = false;
 var firstMessage = false;
 var boSessionFlat;
 var bcSessionXMLFlat;
 var useGuestSession = (response != null && gsMergeGuestSessions=="TRUE" && gsGuest != "" ? true : false);
 var boSession:BusObject = TheApplication().GetBusObject("CMI User Session");
 var bcSession:BusComp;

 if (gHoldBuffer) {
  //If in a EAI Txn, store all payloads in an array so they can be written after the commit or rollback
  gHoldPayloads[gHoldPayloads.length] = arguments;

 } else if (gsTraceIntfaceReqResp == "TRUE" && key != "") {
  //If an interface is being logged for the first time, need to instantiate the session
  if (gSessionId == "") {
   //If Guest connections are not used, a simplified session management can be used 
   if (gsGuest == "" && key != "") {
    bcSession = boSession.GetBusComp("CMI User Session");
    with (bcSession) {
     NewRecord(NewBefore);
     SetFieldValue("Employee Id",TheApplication().LoginId());
     SetFieldValue("Session Stamp",gsLogSession);
     WriteRecord();
     gSessionId = GetFieldValue("Id");
    }
    createSession = false; //skip logic below to create/merge a guest session
    firstMessage = true; //will always insert the input message rather than querying to update
    //Reset the variable to check whether to merge the guest session.  This allows a log buffer dump
    gsMergeGuestSessions = "FALSE";
   } else {
    createSession = true;
 
    //confirm that current session has not been created yet
    bcSession = boSession.GetBusComp("CMI User Session");
    with (bcSession) {
     ClearToQuery();
     SetSearchSpec("Session Stamp", gsLogSession);
     ExecuteQuery(ForwardOnly);
     found = FirstRecord();
  
     if (found == true) {
      gSessionId = GetFieldValue("Id");
      createSession = false;
     } else {
      firstMessage = true;
     }
    }
   }
  }

  logVars("CreateSession", createSession, "useGuestSession", useGuestSession, "First Message", firstMessage, 5);
  if (createSession == true || useGuestSession == true) {
   bcSession = boSession.GetBusComp("CMI User Session");

  //Because EAI logins can trigger logging from the anonymous login, the response logging will trigger
  //from a different session. Query for the most recent corresponding request log and update it
   if (useGuestSession) {
    boSessionFlat = TheApplication().GetBusObject("CMI User Session Flat");
    bcSessionXMLFlat = boSessionFlat.GetBusComp("CMI User Session XML");
    bcSessionXMLFlat.ActivateField("Parent Id");
    bcSessionXMLFlat.ClearToQuery();
    if (typeof(srcObject) != "undefined" && srcObject != null) bcSessionXMLFlat.SetSearchSpec("Source Object", srcObject);
    if (typeof(ref1) != "undefined" && ref1 != null) bcSessionXMLFlat.SetSearchSpec("Reference Id 1", ref1);
    bcSessionXMLFlat.SetSearchSpec("Response", "IS NULL");
    bcSessionXMLFlat.SetSearchSpec("Employee Login", gsGuest);
    bcSessionXMLFlat.SetSortSpec("Created (DESC)");
    bcSessionXMLFlat.ExecuteQuery(ForwardBackward);
    guestSessionFound = bcSessionXMLFlat.FirstRecord();
   
    if (guestSessionFound == true) guestSessionId = bcSessionXMLFlat.GetFieldValue("Parent Id");
   }
   
   logVars("guestSessionFound", guestSessionFound, 5);
   if (guestSessionFound == false && createSession == true) {
   //Anonymous login session not found and there is no current session.  Create a new one
    with (bcSession) {
     NewRecord(NewBefore);
     SetFieldValue("Employee Id",TheApplication().LoginId());
     SetFieldValue("Session Stamp",gsLogSession);
     WriteRecord();
     gSessionId = GetFieldValue("Id");
     logVars("New Global Session Row Id", gSessionId, 5);
    }
   } else if (guestSessionFound == true && createSession == false) {
   //Anonymous login session found and there is a current session. 
   //Link child records to the parent session for the Interface User and delete the guest session (faster than a merge)
    while (guestSessionFound) {
     bcSessionXMLFlat.SetFieldValue("Parent Id",gSessionId);
     bcSessionXMLFlat.WriteRecord();
     guestSessionFound = bcSessionXMLFlat.NextRecord();
    }
    with (bcSession) {
     ClearToQuery();
     SetSearchSpec("Id", guestSessionId);
     SetSortSpec("");
     ExecuteQuery(ForwardOnly);
     guestSessionFound = FirstRecord();
    
     if (guestSessionFound == true) DeleteRecord();
     ClearToQuery();
     SetSortSpec("");
     SetSearchSpec("Id", gSessionId);
     ExecuteQuery(ForwardOnly);
    }
   } else if (guestSessionFound == true && createSession == true) {
    //Anonymous login session found and there is no current session.  Update the guest session to EAI values
    with (bcSession) {
     ActivateField("Employee Id");
     ActivateField("Session Stamp");
     ClearToQuery();
     SetSearchSpec("Id", guestSessionId);
     SetSortSpec("");
     ExecuteQuery(ForwardBackward);
     found = FirstRecord();
    
     if (found == true) {
      SetFieldValue("Employee Id",TheApplication().LoginId());
      SetFieldValue("Session Stamp",gsLogSession);
      WriteRecord();
     }
    }
   } else {
    //Anonymous login session not found and there is a current session.  Do Nothing
   }

   //Reset the variable to check whether to merge the guest session.  This allows a log buffer dump
   gsMergeGuestSessions = "FALSE";
  }
  var bcSessionXML = boSession.GetBusComp("CMI User Session XML");
  var bcSessionXMLDtl = boSession.GetBusComp("CMI User Session XML Detail");

  with (bcSessionXML) {
   if (firstMessage) {
   //This is an insert so no query needed to update an existing record
    found = false;
   } else if (useGuestSession && guestSessionFound) {
   //If this is the first update after a guest session is used, the key will not match but there should only be one XML record
    ClearToQuery();
    SetSearchSpec("Created By Login", gsGuest);
    SetSearchSpec("Parent Id", gSessionId);
    SetSearchSpec("Request", "IS NOT NULL");
    SetSearchSpec("Response", "IS NULL");
    ExecuteQuery(ForwardBackward);
    found = FirstRecord();
   } else {
   //This is a normal response update to an existing message record
    ClearToQuery();
    SetSearchSpec("Parent Id", gSessionId);
    SetSearchSpec("Name", key);
    SetSortSpec("");
    ExecuteQuery(ForwardBackward);
    found = FirstRecord();
   }
   
   if (found == false) {
    NewRecord(NewBefore);
    SetFieldValue("Name",key);
    SetFieldValue("Parent Id",gSessionId);
    logVars("XML Record Id", GetFieldValue("Id"), 5);
   }
   
   if (useGuestSession == true)         SetFieldValue("Name", key.substring(0, 100));

   if (typeof(request) != "undefined" && request != null) {
    SetFieldValue("Request Time", TimeStamp("DateTimeFormatted"));
    splitPayload(bcSessionXMLDtl, "Request", request, 131072)
   }
   if (typeof(response) != "undefined" && response != null) {
    SetFieldValue("Response Time", TimeStamp("DateTimeFormatted"));
    splitPayload(bcSessionXMLDtl, "Response", response, 131072)
   }
 
//   if (typeof(request) != "undefined" && request != null)  trimPS(request, "Request", bcSessionXML, 131072);
//   if (typeof(response) != "undefined" && response != null) trimPS(response, "Response", bcSessionXML, 131072);
   if (typeof(dir) != "undefined" && dir != null)    SetFieldValue("Direction", dir.substring(0, 30));
   if (typeof(recId) != "undefined" && recId != null)   SetFieldValue("Record Id", recId.substring(0, 15));
   if (typeof(recBC) != "undefined" && recBC != null)   SetFieldValue("Record BC", recBC.substring(0, 50));
   if (typeof(status) != "undefined" && status != null)  SetFieldValue("Status", status.substring(0, 30));
   if (typeof(srcObject) != "undefined" && srcObject != null) SetFieldValue("Source Object", srcObject.substring(0, 50));
   if (typeof(name) != "undefined" && name != null)   SetFieldValue("Functional Name", name.substring(0, 50));
   if (typeof(logText) != "undefined" && logText != null)  SetFieldValue("Log Text", logText.substring(0, 131072));
   if (typeof(userText) != "undefined" && userText != null) SetFieldValue("User Text", userText.substring(0, 255));
   if (typeof(retCode) != "undefined" && retCode != null)  SetFieldValue("Return Code", retCode.substring(0, 30));
   if (typeof(ref1) != "undefined" && ref1 != null)   SetFieldValue("Reference Id 1", ref1.substring(0, 100));
   if (typeof(ref2) != "undefined" && ref2 != null)   SetFieldValue("Reference Id 2", ref2.substring(0, 100));
   if (typeof(ref3) != "undefined" && ref3 != null)   SetFieldValue("Reference Id 3", ref3.substring(0, 100));

   WriteRecord();
  }
  if (gsLogMode == "FILE") {
   if (typeof(request) != "undefined" && request != null)  PropSetToFile(key+"_Request", request);
   if (typeof(response) != "undefined" && response != null) PropSetToFile(key+"_Response", response);
  }
 }
} catch(e) {
 RaiseError(e);
} finally {
 bcSessionXML = null;
 bcSessionXMLFlat = null;
 boSessionFlat = null;
 bcSession = null;
 boSession = null;
    logUnstack("", 5);
}

}

The trimPS method is actually deprecated in my service but I include it in case it is useful to anyone.  I basically just takes a property set, converts it to text, then sets a specified field on an instantiated BC passed as an input to the converted text of the property set.  The assumption in using this method is that there is a limit to how large the stored payload can be.
function trimPS(ps, fieldName, bc, maxLength){
 try {
  var psIn      = TheApplication().NewPropertySet();
  var psOut     = TheApplication().NewPropertySet();
  var bsService = TheApplication().GetService ("XML Converter (Data in Child PropSet)");
  psIn.SetProperty("EscapeNames", "False");
  var text:String = "";

  psIn.AddChild(ps);
  bsService.InvokeMethod("PropSetToXML", psIn, psOut);
  bc.SetFieldValue(fieldName, ToString(psOut).substring(0, maxLength));
  bc.SetFieldValue(fieldName+" Time", TimeStamp("DateTimeFormatted"));
  text = bc.GetFieldValue(fieldName);
  text = text.lTrim();
  if (text.substring(0, 14) == "PropertySet [ ") 
   text = text.substring(14);
  text = text.rTrim("]");
  bc.SetFieldValue(fieldName,text);
 } catch (e) {
  throw(e);
 } finally { 
  psOut = null;
  psIn = null;
  bsService = null;
 }
}

The splitPayload method is what replace the tripPS method.  It is no longer limited in being able store only a certain character length of payload as this method splits the payload into chunks of a specified size and inserts records into the instantiated BC passed as an input.
function splitPayload(bc, fieldName, ps, maxLength) {
 try {
  logStack("splitPayload", 5);
  var psIn      = TheApplication().NewPropertySet();
  var psOut     = TheApplication().NewPropertySet();
  var bsService = TheApplication().GetService ("XML Converter (Data in Child PropSet)");
  psIn.SetProperty("EscapeNames", "False");
  var text:String = "";
  var stripPS = false;
  var textPS = "";
  
  psIn.AddChild(ps);
  bsService.InvokeMethod("PropSetToXML", psIn, psOut);
  textPS = ToString(psOut);

  logVars(fieldName+" textPS.length", textPS.length);
  while (textPS.length > 0) {
   bc.NewRecord(NewAfter);
   bc.SetFieldValue("Field", fieldName);
   bc.SetFieldValue("Log Text", textPS.substring(0, maxLength));

   //Service adds a Prefix that needs to be removed
   text = bc.GetFieldValue("Log Text");
   text = text.lTrim();
   if (text.substring(0, 14) == "PropertySet [ ") {
    stripPS = true;
    text = text.substring(14);
   }

   textPS = textPS.substring(maxLength, textPS.length); 
   logVars(fieldName+" textPS.length", textPS.length);

   //If the Text is broken up across multiple records, need to remove the trailing ] from the last record
   if (stripPS && textPS.length < maxLength) {
    text = text.rTrim("]");
   }
   bc.SetFieldValue("Log Text",text);
   bc.WriteRecord();
  }
 } catch (e) {
  throw(e);
 } finally { 
  psOut = null;
  psIn = null;
  bsService = null;
     logUnstack("", 5);
 }
}

Next: Viewing the Payload

No comments:

Post a Comment