File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JDOM Not Being Returned Properly

 
Mike London
Ranch Hand
Posts: 1158
1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

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.

Thanks,

-mike
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13045
6
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Bill
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic