XML Logging: Difference between revisions

176 bytes removed ,  23 February 2019
m
add syntax highlighting
m (add syntax highlighting)
m (add syntax highlighting)
Line 54: Line 54:
Now you need to use and instantiate the client class you have just generated within your service:
Now you need to use and instantiate the client class you have just generated within your service:


  Object oLogSample is a cWebService<br />
<source lang="dataflex">
   <span style="color:midnightblue;">Use cWSLogSample.pkg''
  Object oLogSample is a cWebService
   Object oOwnService is a cWSLogSample''
   Use cWSLogSample.pkg
   End_Object</span>  <span style="color:green;">// oOwnService</span><br />
   Object oOwnService is a cWSLogSample
   End_Object // oOwnService
   { Published = True  }
   { Published = True  }
   { Description = "Interface for sending something to the system" }
   { Description = "Interface for sending something to the system" }
   Procedure  SendSomething tSomeDocumentType Doc<br />
   Procedure  SendSomething tSomeDocumentType Doc
       <span color="green">// Code that actually does stuff...</span><br />
       // Code that actually does stuff...
   End_Procedure  <span style="color:green;">// SendSomething</span><br />
   End_Procedure  // SendSomething
  End_Object  <span style="color:green;">// oLogSample</span><br />
  End_Object  // oLogSample
</source>


====Step 4: Use the client to transform the data back to XML====
====Step 4: Use the client to transform the data back to XML====