public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException { SOAPElement newElement = createElement(NameImpl.create(localName, prefix, uri)); addNode(newElement); return convertToSoapElement(newElement); }
protected SOAPElement circumventBug5034339(SOAPElement element) { Name elementName = element.getElementName(); if (!isNamespaceQualified(elementName)) { String prefix = elementName.getPrefix(); String defaultNamespace = getNamespaceURI(prefix); if (defaultNamespace != null) { Name newElementName = NameImpl.create(elementName.getLocalName(), elementName.getPrefix(), defaultNamespace); SOAPElement newElement = createElement(newElementName); replaceChild(newElement, element); return newElement; } } return element; }
protected void setEncodingStyleNamespace(String soapNamespace, String soapNamespacePrefix) throws SOAPException { Name encodingStyleAttributeName = NameImpl.create("encodingStyle", soapNamespacePrefix, soapNamespace); encodingStyleAttribute.setName(encodingStyleAttributeName); }