SOAPBodyElement sbe1 = bdy.addBodyElement(
envelope.createName("Body1", NS_PREFIX, NS_URI));
sbe1.addChildElement(envelope.createName(
"TheGifAttachment", NS_PREFIX, NS_URI));
sbe1.setAttribute("href", "cid:THEGIF");
SOAPBodyElement sbe2 = bdy.addBodyElement(
envelope.createName("Body2", NS_PREFIX, NS_URI));
sbe2.addChildElement(envelope.createName(
"TheXmlAttachment", NS_PREFIX, NS_URI));
sbe2.setAttribute("href", "cid:THEXML");