List of usage examples for javax.xml.soap SOAPHeaderElement addNamespaceDeclaration
public SOAPElement addNamespaceDeclaration(String prefix, String uri) throws SOAPException;
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);// w ww. j a va 2 s . com child.addNamespaceDeclaration(prefix, uri); addChildElement(child); return child; }