[jdom-interest] JDOM Document over SOAP

Elliotte Rusty Harold elharo at metalab.unc.edu
Mon Sep 10 04:21:14 PDT 2001


It's not very hard. All you need to do is build your SOAP request as a JDOM document, just as you'd build any other XML document in JDOM, and then serialize the whole thing onto a socket using XMLOutputter.  

If your JDOM document is part of a separate object, then just clone its root element and insert the clone at the right place in your SOAP document.

-- 

+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo at metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+ 
|          The XML Bible, 2nd Edition (Hungry Minds, 2001)           |
|              http://www.ibiblio.org/xml/books/bible2/              |
|   http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/   |
+----------------------------------+---------------------------------+
|  Read Cafe au Lait for Java News:  http://www.cafeaulait.org/      | 
|  Read Cafe con Leche for XML News: http://www.ibiblio.org/xml/     |
+----------------------------------+---------------------------------+



More information about the jdom-interest mailing list