XML Logging: Difference between revisions

63 bytes removed ,  5 November 2007
no edit summary
No edit summary
Line 5: Line 5:
Logging the XML sent by a web service client is relatively easy.  It simply involves, following the service invocation, getting the psXML property of the object pointed to by the phoSoapRequest property of your web service client object.  Something like this:
Logging the XML sent by a web service client is relatively easy.  It simply involves, following the service invocation, getting the psXML property of the object pointed to by the phoSoapRequest property of your web service client object.  Something like this:


<blockquote>
  tSomeInput Input
  tSomeInput Input
  tSomeOutput Output
  tSomeOutput Output
Line 13: Line 12:


  Move (psXML(phoSoapRequest(oXyzService(Self)))) to sXML
  Move (psXML(phoSoapRequest(oXyzService(Self)))) to sXML
</blockquote>


Or, more verbosely:
Or, more verbosely:


<blockquote>
tSomeInput Input
tSomeInput Input<br />
tSomeOutput Output
tSomeOutput Output<br />
String  sXML
String  sXML<br />
Handle  hoSoapReq<br />
Handle  hoSoapReq<br />
 
<br />
Get wsSomeOp of oXyzService Input to Output<br />
Get wsSomeOp of oXyzService Input to Output<br />
 
<br />
Get phoSoapRequest of oXyzService to hoSoapReq
Get phoSoapRequest of oXyzService to hoSoapReq<br />
Get psXML of hoSoapReq to sXML
Get psXML of hoSoapReq to sXML<br />
</blockquote>
</blockquote>


Line 41: Line 38:
   { Published = True  }
   { Published = True  }
   { Description = "Interface for sending something to the system" }
   { Description = "Interface for sending something to the system" }
   Procedure  SendSomething tSomeDocumentType Doc
   Procedure  SendSomething tSomeDocumentType Doc<br />
       // Code that actually does stuff...
       // Code that actually does stuff...<br />
   End_Procedure  // SendSomething<br />
   End_Procedure  // SendSomething<br />
  End_Object  // oLogSample<br />
  End_Object  // oLogSample<br />