I posted a message on the web service forum a couple days ago about an issue I'm having with a Web service. Since nobody has replied to it, I'm wondering if it's more of a JDOM problem.
So that I don't "double-post" here, the basic problem is that I'm returning a JDOM document from a web service, but in the client I'm only seeing the root element, not the Children. It all looks fine on the server so I'm thinking that rather than trying to return a "Document" (which the JAX-WS client seems to have wrong anyway), I should return something like a ByteArrayOutputStream or even, gulp, a String representation of the JDOM Document.
Any suggestions would be welcome.
Author and all-around good cowpoke
posted 2 years ago
Actually, returning a valid XML document in text format is the most universal way of communicating XML.
This has the great advantage that you can easily inspect the entire document.
Trying to return a serialized Java object sounds like a recipe for incompatibility.