Hi all,
I need to modify my SOAPBody, before I invoke.
Nothing happens when I add MessageElement to a SOAPBodyElement.
Looking at the code makes me thing it should work but it does not. I
simply do:
[...]
MessageElement promptValue = new MessageElement();
promptValue.setEnvelope(se); /* same results with or without */
promptValue.setName("userData");
promptValue.setAttribute("", "name", "foo" );
promptValue.setAttribute("", "value", "bar" );
MessageElement optionList = getOptionList(se);
if (optionList != null)
optionList.addChild( promptValue );
XMLUtils.PrettyElementToStream(optionList.getAsDOM(), System.out);
[...]
The addChild call does not have any effect on the optionList...
Also, there is a private constructor in MessageElement that takes a DOM
Element... but I cannot try it...
Any idea what is going on?
Thanks,
Sylvain.
This message may contain privileged and/or confidential information. If you
have received this e-mail in error or are not the intended recipient, you
may not use, copy, disseminate or distribute it; do not open any
attachments, delete it immediately from your system and notify the sender
promptly by e-mail that you have done so. Thank you.