Java XML RPc connection to retrieve files

Good Day and thanks in advanced. I am looking for a code to help MA retrieve detail of any file say a PDF file stored inside a virtual machines hard disk. I have searched the internet but I have not even seen anything close to what I am looking for. Thank you again