I tried the following with out success too
Hashtable headerTbl = (Hashtable) _messageContext.getProperty(HTTPConstants.HTTP_HEADERS); if (headerTbl == null) { headerTbl = new Hashtable(); _messageContext.setProperty(HTTPConstants.HTTP_HEADERS, headerTbl); } headerTbl.put("TEST_HEADER", "TEST_VALUE"); mieke wrote: > > I have an old axis2 client with generated stubs that is now required to > pass some additional information in the HTTP Header. I attempted to > modify the generated stub by adding the following logic to one of the > methods: > > Hashtable headerTbl = (Hashtable) > _messageContext.getProperty(HTTPConstants.HEADER_SOAP_ACTION); > if (headerTbl == null) { > headerTbl = new Hashtable(); > _messageContext.setProperty(HTTPConstants.REQUEST_HEADERS, > headerTbl); > } > headerTbl.put("TEST_NAME", "TEST_VALUE"); > > This did not work. Could someone please outline (with an example if > possible) how to add data to the header. > > Thanks, > > Mieke > > -- View this message in context: http://www.nabble.com/HTTP-Header-issue-tp24169983p24176647.html Sent from the Axis - User mailing list archive at Nabble.com.