Hi,
I used Apche SOAP 2.2 to transport client and server.
If I want to send SOAP Message [A:] , I write java code [B:].
Now, I want to use Axis.
Please tell me how to use SOAP Message with Axis.
[A: SOAP Message]
<SOAP-ENV:Body>
<foo id="0123">
<bar>ABC</bar>
</foo>
</SOAP-ENV:Body>
[B: Java Code for Apche SOAP 2.2 ]
Envelope env = new Envelope();
Body soapBody = new Body();
DocumentImpl doc = new DocumentImpl();
Element root = doc.create(foo);
root.setAttribute("id", "0123");
Element item = doc.createElement("bar");
item.appendChild(doc.createTextNode("ABC"));
root.appendChild(item);
doc.appendChild(root);
Vector vec = new Vector();
vec.addElement(root);
soapBody.setBodyEntries(vec);
env.setBody(soapBody);
msg.send("...", "...", env);
Thanks.
--
IKEDA Katsumi <[EMAIL PROTECTED]>