XML Logging: Difference between revisions

m
no edit summary
mNo edit summary
mNo edit summary
Line 37: Line 37:
       // Code that actually does stuff...<br />
       // Code that actually does stuff...<br />
   End_Procedure  // SendSomething<br />
   End_Procedure  // SendSomething<br />
  End_Object  // oLogSample<br />
  End_Object  <font color="green">// oLogSample</font><br />


====Step 2: Create a Client====
====Step 2: Create a Client====
Line 54: Line 54:
       // Code that actually does stuff...<br />
       // Code that actually does stuff...<br />
   End_Procedure  // SendSomething<br />
   End_Procedure  // SendSomething<br />
  End_Object  // oLogSample<br />
  End_Object  <font color="green">// oLogSample<font><br />


====Step 4====
====Step 4====
Line 63: Line 63:
   Object oOwnService is a cWSLogSample
   Object oOwnService is a cWSLogSample
   End_Object  // oOwnService<br />
   End_Object  // oOwnService<br />
   <font color="blue">// LogMsg: The arguments are - 1 Data passed to the method
   <font color="green">// LogMsg: The arguments are - 1 Data passed to the method
   //                            2 Name of the method (literal)
   //                            2 Name of the method (literal)
   //                            3 Name of the variable (literal)
   //                            3 Name of the variable (literal)
   //                            4 Object handle for type - which will be named "oWS{typeName}"
   //                            4 Object handle for type - which will be named "oWS{typeName}"</font>
   Procedure LogMsg Variant Data String sOp String sName Handle hoObj
   <font color="blue">Procedure LogMsg Variant Data String sOp String sName Handle hoObj
       tSoapParameter Param
       tSoapParameter Param
       Handle  hoXML hoDoc
       Handle  hoXML hoDoc
Line 81: Line 81:
       Send Destroy of hoXML<br />
       Send Destroy of hoXML<br />
       // Now you can log sXML in some way...<br />
       // Now you can log sXML in some way...<br />
   End_Procedure  // LogMsg</font><br />
   End_Procedure</font> <fonr color="green">// LogMsg</font><br />
   { Published = True  }
   { Published = True  }
   { Description = "Interface for sending something to the system" }
   { Description = "Interface for sending something to the system" }