<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Hi Eric<br>
<blockquote
 cite="mid:A9856B86EDA25144A734574D0338C135D2A424@berwnexmb01.jcorp.ad.jamba.net"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">Is there a
possibility to retrieve the whole
transport (HTTP) header inside a custom mediator (not only a specified
property
via XPath function)?</span></font></p>
  </div>
</blockquote>
Yes, you can receive all the HTTP headers as a Map, from the axis2
message context, by looking up for the property using the key:
[org.apache.axis2.context.]MessageContext.TRANSPORT_HEADERS<br>
<br>
To get the underlying Axis2 message context from a Synapse message
context, you can do:<br>
<br>
Axis2MessageContext axis2smc = (Axis2MessageContext) synCtx;<br>
org.apache.axis2.context.MessageContext axis2MessageCtx =
axis2smc.getAxis2MessageContext();<br>
<br>
<blockquote
 cite="mid:A9856B86EDA25144A734574D0338C135D2A424@berwnexmb01.jcorp.ad.jamba.net"
 type="cite">
  <div class="Section1">
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB"><o:p></o:p></span></font></p>
  <p class="MsoNormal"><font face="Arial" size="2"><span
 style="font-size: 10pt; font-family: Arial;" lang="EN-GB">How to
retrieve the HTTP Status code of a message
response inside a custom mediator?</span></font></p>
  </div>
</blockquote>
Unfortunately, this has not been made available from the HTTP/s
transport, although its trivial to have set it.. Is this critical to
your environment? If yes, we can make this available with a patch, as
we have now officially frozen the Synapse code unless for blockers.<br>
<br>
asankha<br>
</body>
</html>