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);
时间: 2024-10-09 11:08:49