We don't currently have sample Java codes for our XML integration, and the reason for this is that most Java developers we've dealt with find it easier to use JAXB to auto-generate the methods using our live XSD file here.
If you require more information, please contact Support Team.