List of usage examples for javax.xml.soap SOAPBody setParentElement
public void setParentElement(SOAPElement parent) throws SOAPException;
From source file:org.apache.axis.message.SOAPEnvelope.java
/** * Set the soap body// www . j a v a 2s .c o m * @param body */ public void setBody(SOAPBody body) { if (this.body != null) { removeChild(this.body); } this.body = body; try { body.setParentElement(this); } catch (SOAPException ex) { // class cast should never fail when parent is a SOAPEnvelope log.fatal(Messages.getMessage("exception00"), ex); } }