* @param msgContext the inbound (provider-issued) message from which cookie information is extracted
* @return <code>true</code> to continue processing, <code>false</code> otherwise (defined by {@link javax.xml.ws.handler.Handler#handleMessage(javax.xml.ws.handler.MessageContext)})
*/
public boolean handleResponse(MessageContext msgContext)
{
SOAPMessageContext smc = (SOAPMessageContext)msgContext;
SOAPMessage message = smc.getMessage();
// get cookies
// proper approach through MessageContext.HTTP_RESPONSE_HEADERS
@SuppressWarnings("unchecked")
Map<String, List<String>> httpHeaders = (Map<String, List<String>>)smc.get(MessageContext.HTTP_RESPONSE_HEADERS);
List<String> cookieValues = httpHeaders.get(CookieUtil.SET_COOKIE);
if (cookieValues == null)
{
// try the legacy JBossWS native approach
MimeHeaders mimeHeaders = message.getMimeHeaders();