XML Logging: Difference between revisions
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: | ||
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 | ||
Or, more verbosely: | Or, more verbosely: | ||
tSomeInput Input | |||
tSomeInput Input | tSomeOutput Output | ||
tSomeOutput Output | String sXML | ||
String sXML | Handle hoSoapReq<br /> | ||
Handle hoSoapReq<br /> | |||
Get wsSomeOp of oXyzService Input to Output<br /> | |||
Get wsSomeOp of oXyzService Input to Output<br /> | |||
Get phoSoapRequest of oXyzService to hoSoapReq | |||
Get phoSoapRequest of oXyzService to hoSoapReq | Get psXML of hoSoapReq to sXML | ||
Get psXML of hoSoapReq to sXML | |||
</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 /> |