Example usage for javax.xml.soap SOAPBodyElement setPrefix

List of usage examples for javax.xml.soap SOAPBodyElement setPrefix

Introduction

In this page you can find the example usage for javax.xml.soap SOAPBodyElement setPrefix.

Prototype

public void setPrefix(String prefix) throws DOMException;

Source Link

Document

The namespace prefix of this node, or null if it is unspecified.

Usage

From source file:org.apache.axis.message.SOAPBody.java

public SOAPElement addChildElement(String localName, String prefix) throws SOAPException {
    SOAPBodyElement child = new SOAPBodyElement(getNamespaceURI(prefix), localName);
    child.setPrefix(prefix);
    addChildElement(child);//w w  w  . j a  va 2s .  co m
    return child;
}

From source file:org.apache.axis.message.SOAPBody.java

public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException {
    SOAPBodyElement child = new SOAPBodyElement(uri, localName);
    child.setPrefix(prefix);
    child.addNamespaceDeclaration(prefix, uri);
    addChildElement(child);/*ww w.  ja  va  2s  .c  o  m*/
    return child;
}