Does anyone know a quick way to reverse-engineer an in-memory object graph in Java? What I need is a way to traverse an in-memory object graph and create Java instantiation/setter calls to re-create the original graph.
That's needed as a tool for an integration project with a half-baked web services developed by ivory tower architects. So I ended up getting a massive XSD doc and a bunch of sample XML instances confirming to it... Now need to bridge it somehow with our domain code...
Here is a sequence diagram of how it might look like. I just need to add another check if the user exists in the remote service. The problem is that this call would be large 500+ lines of code to even generate the request. I am trying to find a way to automate this instantiation.
Thanks in advance.