122123124125126127128129130131132
} for (int i = 0; i < soapHeaderList.size(); i++) { OMElement headerBlock = (OMElement) soapHeaderList.get(i); header.addChild(headerBlock); } } } /**
547548549550551552553554555556557
se.getBody().addChild(elem); } if (headers != null) { SOAPHeader sh = se.getHeader(); for (int i = 0; i < headers.size(); i++) { sh.addChild((OMElement) headers.get(i)); } } mc.setEnvelope(se); }