Thanks for your reply.
I tried your code, but when I do System.out.println(XXX.toString())
before and after the code snippet, I get the same piece of XML both
times (both times without my added node).
On 8/16/05, zze-ELSOKHON Tony RD-BIZZ-ISS
<[EMAIL PROTECTED]> wrote:
>
> > I think I might need to add the element at a specific place in the
> > soap xml. However, I can't find a method to insert a child element of
> > a soapelement in a specific location in the javadocs. Any help please?
>
> In my own code, I use the class MessageElement instead of the interface
> SOAPElement.
>
> The code:
> QName element = new QName(__SOME_NAMESPACE_URI__,
> __SOME_NAME__);
> XXX.addChildElement(new MessageElement(element, "Text node
> value"));
> works fine.
>
> On 8/12/05, Javier Gonzalez <[EMAIL PROTECTED]> wrote:
> > Hi!
> >
> > I receive soap messages via a document axis webservice, and I'm trying
> > to add an optional node to the soap message before relaying it to some
> > other place for further processing.
> >
> > I'm trying this:
> >
> > SOAPElement attachid =
> > ParentNodeOfOptional.addChildElement("NameOfOptionalNode");
> > attachid.addTextNode("ValueOfOptionalNode");
> >
> > But when I print ParentNodeOfOptional.toString() the optional node
> > isn't added. What am I doing wrong?
> >
> > Thanks in advance.
> >
> > --
> > Javier Gonzalez Nicolini
> >
>
> --
> Tony ELSOKHON
>
--
Javier Gonzalez Nicolini