Hi All,
I created an out interceptor, subclassing AbstractPhaseInterceptor. The
interceptor is invoked fine, however, changes to the response header
doesn't seem to reflect. The handleMessage is quite straightforward:
public void handleMessage(Message message) throws Fault {
Map<String, List<String>> responseHeaders = (Map<String,
List<String>>)message.get(Message.PROTOCOL_HEADERS);
logger.info("out message headers: " + responseHeaders);
if (responseHeaders != null) {
responseHeaders.put("Authentication-Info", Arrays.asList(new
String[]{"nextnonce="+generateNonce()}));
}
logger.info("out message headers: " + responseHeaders);
}
I have tried several phases:
1. SETUP -- the responseHeader is null
2. PRE_PROTOCOL - POST_PROTOCOL -- the changes to the header does not
reflect.
Again, my thanks for the assistance.
Gabo