Example usage for javax.xml.soap SOAPHeaderElement setPrefix

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

Introduction

In this page you can find the example usage for javax.xml.soap SOAPHeaderElement 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.SOAPHeader.java

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

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

public SOAPElement addChildElement(String localName, String prefix, String uri) throws SOAPException {
    SOAPHeaderElement child = new SOAPHeaderElement(uri, localName);
    child.setPrefix(prefix);
    child.addNamespaceDeclaration(prefix, uri);
    addChildElement(child);//www  .j av  a 2 s.c o  m
    return child;
}