axis-java-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Wayne Yan <>
Subject Custom http headers ...
Date Tue, 17 Sep 2002 11:45:59 GMT
Currently using RC1 for client invocations

Has anyone have any ideas why the org.apache.axis.client.Call resets the
message context on invoke(). 

    public void invoke() throws AxisFault {
        if (log.isDebugEnabled()) {
            log.debug("Enter: Call::invoke()");

        Message      reqMsg  = null ;
        SOAPEnvelope reqEnv  = null ;
        msgContext.reset();               <-- Offending code call.

This effectively clears the context of anything set via a client call like

	Hashtable moreHeaders = new Hashtable();
	moreHeaders.put("ABC", "123");
	env = call.invoke(env);

By the time the context is used by the transport component
(org.apache.axis.transport.http.HTTPSender), there are no longer any custom
header entries.

Bug or not ?

Is there any other way to effect a custom http header entry?

View raw message