I want to add a couple of elements to the SOAP header, I used to be able to
do this with Apache SOAP 2.2.
With Axis, SOAPHeaderElement.addTextNode() is documented as being not
supported. How do I add a text node to an element? Why does Axis implement
this interface in this fashion?
Sample code that won't work with the current Axis implementation of
SOAPElement
SOAPHeaderElement user = new SOAPHeaderElement("", "USER");
user.addTextNode("foo");
call.addHeader(user);
SOAPHeaderElement password = new SOAPHeaderElement("",
"PASSWORD");
password.addTextNode("bar");
call.addHeader(password);
I also tried calling Stub._setProperty(String, String) but arbitrary
properties don't seem to get picked up.
Any suggestions?
Scott.