Most of the JCO classes like JCO.Function, JCO.Table, JCO.ParameterList, JCO.Record and JCO.Structure supports writeHTML(String) and writeXML(String) method.
writeHTML(String filename) -> method takes the file name as an input parameter and writes the dump of the corresponding object into a file in the form of HTML document.
writeXML(String filename) -> method takes the file name as an input parameter and writes the dump of the corresponding object into a file in the form of XML document.
This can serve as a very easy tracing mechanism while making a RFC call using JCo API to verify whether everything went as expected or not.
Java Code Snippet:
The following were the dump files created as a result of the code.
HTML Dump:
XML Dump:
Similar dump files can also be created for other JCO Objects like Table, ParameterList, Structure etc by calling their corresponding writeHTML(String) or writeXML(String) function.