public static void setBinaryPayload(SOAPEnvelope envelope, DataHandler dh) {
OMFactory fac = envelope.getOMFactory();
OMElement binaryElt = envelope.getOMFactory()
.createOMElement(BINARYELT);
OMText text = fac.createOMText(dh, true);
binaryElt.addChild(text);
setXMLPayload(envelope, binaryElt);
}
public static void setBinaryPayload(MessageContext mc, DataHandler dh) {
if (mc.getEnvelope() == null) {