super(envelope, builder, factory);
}
public SOAPHeaderBlock addHeaderBlock(String localName, OMNamespace ns) throws OMException {
if (ns == null || ns.getName() == null || "".equals(ns.getName())) {
throw new OMException(
"All the SOAP Header blocks should be namespace qualified");
}
OMNamespace namespace = findNamespace(ns.getName(), ns.getPrefix());
if (namespace != null) {
ns = namespace;
}
SOAPHeaderBlock soapHeaderBlock = null;
try {
soapHeaderBlock = new SOAP12HeaderBlockImpl(localName, ns, this,
(SOAPFactory) this.factory);
} catch (SOAPProcessingException e) {
throw new OMException(e);
}
((OMNodeEx) soapHeaderBlock).setComplete(true);
return soapHeaderBlock;
}