getXMLData() Method
In ScheduleService, use the getXMLData() method to return, in XML format, the data document generated by a scheduled job. You can use the JobOutputID returned from the scheduleReport() method to retrieve the generated XML document.
Note, the getXMLData() method returns the byte[] of a report document, while the downloadXMLData() Method saves the XML data as a local file. The latter method returns the file ID, enabling the user to download the XML-based document later through the Delivery Service. This is for performance concerns in cases where a report document size is quite large.
Signature
byte[] getXMLData(String JobInstanceID, String userID, String password);
Parameters for getXMLData() Method
Parameter | Description |
---|---|
String JobInstanceID |
The ID assigned to the instance of the job that generated the output. The JobInstanceID is a string of integers. |
String userID |
Specifies the user name. |
String password |
Specifies the password for the user name. |