try {
SOAPEnvelope env = msgContext.getResponseMessage().getSOAPEnvelope();
SOAPHeaderElement header = new SOAPHeaderElement(
TestOnFaultHeaders.TRIGGER_NS,
TestOnFaultHeaders.RESP_NAME,
"here's the value"
);
env.addHeader(header);
} catch (Exception e) {
throw new RuntimeException("Exception during onFault processing");
}