Title: Nachricht
Hi,
 
how do I set an http header (from the axis client) in the request to the axis server. I try the following:
 
        org.apache.axis.MessageContext axisCtx = org.apache.axis.MessageContext.getCurrentContext();
        Hashtable userHeaderTable = new Hashtable();
        if(axisCtx.getProperty(HTTPConstants.REQUEST_HEADERS) != null)
        userHeaderTable = (Hashtable) axisCtx.getProperty(HTTPConstants.REQUEST_HEADERS);
        userHeaderTable.put("TEST", "HELLO");
        axisCtx.setProperty(HTTPConstants.REQUEST_HEADERS, userHeaderTable);
 
but it doesn't work, because getCurrentContext() is ever null.
 
 
Cheers,
Markus
 
 
 

Reply via email to