actionElement.appendChild(actionContent);
soapHeader.appendChild(actionElement);
}
Element soapBody = WSSecurityUtil.findBodyElement(doc, soapConsts);
if (soapBody == null) {
throw new NoSoapBody("A SOAP Body element is needed to insert the <RequestSecurityToken>.");
}
setWsuId(soapBody);
if (tokenRequest != null)
soapBody.appendChild(tokenRequest.getElement());