You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Dunn, Scott" <SD...@sonusnet.com> on 2002/06/07 17:53:33 UTC

SOAPHeaderElement.addTextNode() ???

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.