SOAPPart soapPart = soapMessage.getSOAPPart();
SOAPEnvelope soapEnvelope = soapPart.getEnvelope();
SOAPHeader soapHeader = soapEnvelope.getHeader();
Name security = soapEnvelope.createName(SoapConstants.WSSE_LN, "wsse", SoapConstants.WSSE_NS);
SOAPHeaderElement headerElement = soapHeader.addHeaderElement( security );
createBinaryHeaderElement(soapEnvelope, headerElement, encodingType, valueType, cert );
return soapMessage;
}