SOAPEnvelope env = msgContext.getRequestMessage().getSOAPEnvelope();
if (env.getHeaderByName(TestHeaderAttrs.GOOD_HEADER_NS,
TestHeaderAttrs.GOOD_HEADER_NAME) != null) {
// Just the header's presence is enough - mark the property
// so it can be picked up by the service (see below)
msgContext.setProperty(TestHeaderAttrs.PROP_DOUBLEIT, Boolean.TRUE);
}
if (env.getHeaderByName(TestOnFaultHeaders.TRIGGER_NS,
TestOnFaultHeaders.TRIGGER_NAME) != null) {
// Fault trigger header is there, so throw an Exception
throw new AxisFault("triggered exception");
}