SOAPPart soapPart = message.getSOAPPart();
SOAPEnvelope envelope = soapPart.getEnvelope();
envelope.addNamespaceDeclaration("soapenv",
"http://schemas.xmlsoap.org/soap/envelope/");
envelope.addNamespaceDeclaration(BAS, nameSpace);
envelope.addNamespaceDeclaration("sec", secNameSpace);
// header
envelope.getHeader().detachNode();