Hi,
I would advise you to create a specific document type that matches your Java object/class as closely as possible, so you can create an XML->Document flow service conversion, and then create a Java service to make a Document->JO conversion service.
Depending on the complexity of the original XML file and the target object, some conversions are easier to do explicitly in Flow or Java, and others are easier to do using an XSLT service.
Good luck.
#webMethods#webMethods-General#Integration-Server-and-ESB