[jdom-interest] How to use Apache Soap with JDOM???

sanjay gupta sanjaygupta at myrealbox.com
Tue Jul 23 00:59:06 PDT 2002


Hi Anthony,
I have a crude implementation where i get the org.w3c.dom.Element by using DOMOutputter and then pass this output to SOAP client. The code snippet follows.....

*******************************************
DOMOutputter domOutputter = new DOMOutputter();
org.w3c.dom.Element element = domOutputter.output(base);
        
Envelope sendEnv = new Envelope();
Body sendBody = new Body();
Vector bodyEntry = new Vector();
bodyEntry.add(element);
sendBody.setBodyEntries(bodyEntry);
sendEnv.setBody(sendBody);

Message soapMessage = new Message();
soapMessage.setSOAPTransport (Connection);            soapMessage.send(url, "", sendEnv);

***************************************

Any ideas, suggestions to improve this.

Regards,
Sanjay

 

-----Original Message-----
From: "Anthony W. Marino" <anthony at AWMObjects.com>
To: "sanjay gupta" <sanjaygupta at myrealbox.com>
Date: Mon, 22 Jul 2002 22:13:17 -0400
Subject: Re: [jdom-interest] How to use Apache Soap with JDOM???

Hi Sanjay,
Did you ever get a response to your question???
I'm curious as to specific implementations, if you don't mind sharing.

Thank You,
Anthony


Yesterday is just a memory
Tomorrow we may never see
Today is like a gift
That's why its called the present



More information about the jdom-interest mailing list