axis Header 中添加用户名密码
Call call = (Call) service.createCall(); SOAPHeaderElement cpHeader = new SOAPHeaderElement("http://tempuri.org/", "NewValidateSoapHeader"); cpHeader.setPrefix("cp"); cpHeader.setMustUnderstand(true); SOAPElement ele = cpHeader.addChildElement("UserName"); ele.addTextNode(""); ele = cpHeader.addChildElement("PassWord"); ele.addTextNode(""); call.addHeader(cpHeader);