XML Logging: Difference between revisions
→Web Service Client XML Logging
Line 9: | Line 9: | ||
==Web Service Client XML Logging== | ==Web Service Client XML Logging== | ||
Logging the XML sent by a web service client is relatively easy. It simply involves 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> | <blockquote> | ||
tSomeInput Input | |||
tSomeOutput Output | |||
String sXML | |||
Get wsSomeOp Input of oXyzService to Output | |||
Move (psXML(phoSoapRequest(oXyzService(Self)))) to sXML | |||
</blockquote> | </blockquote> | ||
Or, more verbosely: | |||
<blockquote> | |||
tSomeInput Input | |||
tSomeOutput Output | |||
String sXML | |||
Handle hoSoapReq | |||
Get wsSomeOp Input of oXyzService to Output | |||
Get phoSoapRequest of oXyzService to hoSoapReq | |||
Get psXML of hoSoapReq to sXML | |||
</blockquote> | |||
Either way you now have the XML sent | |||
==Web Service XML Logging== | ==Web Service XML Logging== |