// required part of the message as per the SOAP 1.1 spec.
SOAPPart sp = msg.getSOAPPart();
SOAPEnvelope envelope = sp.getEnvelope();
SOAPHeader hdr = envelope.getHeader();
SOAPBody bdy = envelope.getBody();
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(