I am using axis client for accessing webservice. I need to add authentication information in SOAP header.
using wsdl2Java i have generated the stub, skelaton stuff....
From the testClient i am trying the following codes.. But i am not able to view the SOAP Header in the SOAP request..
Way 1.) ****** TpsLocator locator = new TpsLocator(); org.apache.axis.client.Stub s=(org.apache.axis.client.Stub) locator.gettpsSoapDocPort(); s.setHeader("http://my.name.space/headers", "mysecurityheader", "This guy is OK");