my dog learned polymorphism*
The moose likes Web Services and the fly likes Returning a JDOM Document in JAX-WS Issue Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Web Services
Bookmark "Returning a JDOM Document in JAX-WS Issue" Watch "Returning a JDOM Document in JAX-WS Issue" New topic
Author

Returning a JDOM Document in JAX-WS Issue

Mike London
Ranch Hand

Joined: Jul 12, 2002
Posts: 1043
Hello,

I'm trying to return a simple JDOM document from a JAX-WS Web Service, but I only get the root element, not the entire tree.

The same code in a standalone Java application works fine.

I've rebuilt the WSDL many times in the client and tried to return the root Element and the "document" as return types, but neither works.

--------------------

It seems that the "Document" object created in the client code from the WSDL from the server web service doesn't have the right JDOM type entities.

The server method is defined like this:



---------------------------

Here's the generated (from WSDL) Document class in the client. No concept of child nodes shown:



Confused.

Thanks,

-mike
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Returning a JDOM Document in JAX-WS Issue
 
Similar Threads
XPath functions and WebSphere
JAX-RPC vs JAX-WS some differences
No adapter for endpoint Exception
JDOM works normally not with JSP
New to Web services- Problem