To calrify my question, I am using Axis2 and AXIOM and want to remove the
OMElement from the SOAPBody . What is the best method to take?

My code code is as follows:

SOAPEnvelope envelope = msgContext.getEnvelope();
SOAPBody body = envelope.getBody();

Iterator iterator = body.getChildrenWithName(new QName("http://foo.org/";,
"Foo"));

while (iterator.hasNext()) {
         OMElement fooElement = (OMElement) iterator.next();
         OMElement barElement = fooElement.getFirstChildWithName(new QName("
http://foo.org/";, "Bar"));

         // to do - remove barElement from the SOAPBody

Thanks

On 9/7/07, kevin glenny <[EMAIL PROTECTED]> wrote:
>
> Hi all,
>
> I am trying to remove a OMElement from the SOAPBody in my Handler and have
> been unable to find any methods or approaches to do this.
>
> I would be grateful if anybody could tell me the recommended way or ideas
> to achieve this.
>
> Many thanks,
>
> Kevin
>

Reply via email to