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: https://payments.worldnettps.com/merchant/gateway.xsd.
If you require more information, please contact Support Team.