I have to call setRecorder(null) on my envelope in order for the changes
to show in my toString and getAsDom methods after I have removed
elements from the header.

-Bill Kuker


> -----Original Message-----
> From: Bill Kuker [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, October 11, 2005 11:34 AM
> To: [email protected]
> Subject: Changes to SOAPHeader do not seem to have effect on toString
and
> getAsDOM
> 
> 
> 
> When I change the contents of a SOAPHeader, either with
> extractHeaderElements() or explicitly removing them with removeChild()
> the SOAPEnvelope and SOAPHeader's toString() and getAsDom() functions
> return as if the headers were never removed.
> 
> I have verified that the SOAPHeaderElements are removed from the
> SOAPHeader by digging through the objects in my debugger.
> 
> I'll guess that the envelope and header objects cache the toString and
> gerAsDOM results, and that this is a bug, or is there some kind of
> update function I need to call?
> 
> Thanks,
> 
> -Bill Kuker
> 

Reply via email to