Ejemplo n.º 1
0
  public SOAPElement addChildElement(String localName, String prefix, String uri)
      throws SOAPException {

    SOAPElement newElement = createElement(NameImpl.create(localName, prefix, uri));
    addNode(newElement);
    return convertToSoapElement(newElement);
  }
Ejemplo n.º 2
0
  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;
  }
Ejemplo n.º 3
0
 protected void setEncodingStyleNamespace(String soapNamespace, String soapNamespacePrefix)
     throws SOAPException {
   Name encodingStyleAttributeName =
       NameImpl.create("encodingStyle", soapNamespacePrefix, soapNamespace);
   encodingStyleAttribute.setName(encodingStyleAttributeName);
 }