public SOAPElement addTextNode(String value) throws SOAPException { if (log.isTraceEnabled()) log.trace("addTextNode: [value=" + value + "]"); expandToDOM(); return super.addTextNode(value); }
/** * Text nodes are not supported. */ public SOAPElement addTextNode(String value) throws SOAPException { if (value.trim().length() > 0) throw new SOAPException(BundleUtils.getMessage(bundle, "CANNOT_ADD_TEXT_NODE_TO_SOAPENVELOPE")); return super.addTextNode(value); }
/** Attaching a Text node is not legal. */ @Override public SOAPElement addTextNode(String value) throws SOAPException { // JBCTS-440 #addTextNodeTest2 adds a text node to a SOAPHeader and expects a SOAPException if (Constants.NS_SOAP12_ENV.equals(getNamespaceURI())) throw new SOAPException(BundleUtils.getMessage(bundle, "ATTACHING_TEXT_NODE_ILLEGAL", getLocalName())); return super.addTextNode(value); }