XML Replay: Difference between revisions

From DataFlex Wiki
Jump to navigationJump to search
no edit summary
No edit summary
No edit summary
Line 1: Line 1:
==Replaying Logged XML==
When attempting to diagnose problems which occur within web service environments, it is often useful to be able to re-run the XML which triggered the problem, so as to be able to step through it in the Visual DataFlex Studio debugger.  The XML passed to a web service can be logged (see [[XML logging]] for details of how this can be done) and this historic data can then be used to "''replay''" the offending call and see what probably happened.
When attempting to diagnose problems which occur within web service environments, it is often useful to be able to re-run the XML which triggered the problem, so as to be able to step through it in the Visual DataFlex Studio debugger.  The XML passed to a web service can be logged (see [[XML logging]] for details of how this can be done) and this historic data can then be used to "''replay''" the offending call and see what probably happened.


Line 24: Line 23:
Once this has been corrected (either manually or in your replay program), the XML is then ready for incorporation into a SOAP message for re-sending to you service, running under a debugger so you can set breakpoints and trace the execution through, step by step.
Once this has been corrected (either manually or in your replay program), the XML is then ready for incorporation into a SOAP message for re-sending to you service, running under a debugger so you can set breakpoints and trace the execution through, step by step.


In order to do this however, you are going to need a client which operates at a lower level than the standard web service client class you are able to generate for your service.  The following is an example of how you might do this using an object of the cXmlHttpTransfer class.
In order to do this however, you are going to need a client which operates at a lower level than the standard web service client class you are able to generate for your service using the Studio's Web Service Client Class Generator.  The following is an example of how you might do this using an object of the cXmlHttpTransfer class.


   Use cXmlHttpTransfer.pkg<br />
   Use cXmlHttpTransfer.pkg<br />

Navigation menu