Capturing varibles of InboundInterceptor?
<p>When I am trying to call the variables (incomingResponseXml) of InboundIntercptors  in the class LabUtils after coming out of  halfpenny server (String halfpennyurl) the value I am getting is null . </p>

<p>How do I capture that variable ?</p>

<p>LabUtisl.java</p>

<pre><code>class LabUtils{.........

    private void gotoOrderPage(String serviceType, String sessionId) throws IOException
    {
        HPPrepareOrderInput prepareOrderInput = new HPPrepareOrderInput();
        populateHPOrderServiceInput(serviceType, sessionId, prepareOrderInput);

        populatePatientData(prepareOrderInput);
        populateClinicianData(prepareOrderInput);

        long start = System.currentTimeMillis();
        String halfPennyUrl = HPOrderClient.getOrderPageUrl(LabRadiologyConstants.ORDER_WSDL_URL, prepareOrderInput);
        long end = System.currentTimeMillis();
        long time2 = end-start;
        RequestHandler.setStart1(System.currentTimeMillis());

        performRedirect(halfPennyUrl);

    }
</code></pre>

<p>InboundInterceptors.class</p>

<pre><code>public class DFLoggingInInterceptor extends LoggingInInterceptor
{
    public String incomingResponseXml;


    public DFLoggingInInterceptor()
    {
        super(Phase.RECEIVE);
    }

    @Override
    public void handleMessage(Message message) throws Fault
    {
        InputStream is = message.getContent(InputStream.class);
        CachedOutputStream os = new CachedOutputStream();
        try
        {
            IOUtils.copy (is, os);
            os.flush();
            message.setContent(InputStream.class, os.getInputStream ());
            is.close();

            incomingResponseXml = IOUtils.toString(os.getInputStream());

            os.close();
        }
        catch(Exception e)
        {
            e.printStackTrace();
        }
    }



    public String getIncomingResponseXml()
    {
        return incomingResponseXml;
    }
}
</code></pre>
