Try this method: user.setObjectValue( "Enter any String" ); This creates a tag like the following: <USER>Enter any Sting</USER>
best regards Matthias Wimmer -----Original Message----- From: Dunn, Scott [mailto:[EMAIL PROTECTED]] Sent: Friday, June 07, 2002 11:54 AM To: '[EMAIL PROTECTED]' Subject: 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.
