Try it this way:
-------
DocumentBuilderFactory dbf = DocumentBuilderFactory.newInstance();
DocumentBuilder db = dbf.newDocumentBuilder();
Document doc = db.newDocument();
Element methodCall = doc.createElement("ns1:methodToCall");
methodCall.setAttribute("xmlns:ns1", "uri:MySoapObjectToCall);
methodCall.appendChild(message_body_element);
Body body = new Body();
Vector bodyEntries = new Vector();
bodyEntries.add(methodCall);
body.setBodyEntries(bodyEntries);
Envelope msgEnvelope = new Envelope();
msgEnvelope.setBody(body);
Message msg = new Message();
msg.send(endpoint, "", msgEnvelope);
-------
Christian
-----Urspr�ngliche Nachricht-----
Von: Shashi Anand [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 8. M�rz 2002 11:14
An: [EMAIL PROTECTED]; [EMAIL PROTECTED];
[EMAIL PROTECTED]
Betreff: soap messaging XML ???
Hi,
One strange thing I noticed is that all the tutorials explaining the SOAP
messaging assume whole SOAP message to be readilly available in XML file,
where as this is not the case. None of tutorials explain how to form this
SOAP message given the XML which is only part of message body.
Does somebody have any idea on how to form the SOAP message using API.
+Shashi Anand
(Senior Software Engineer
8Infogain India
OB 15 Sec 58, NOida, UP 201301, India