[
https://issues.apache.org/jira/browse/WSCOMMONS-302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Rich Scheuerle resolved WSCOMMONS-302.
--------------------------------------
Resolution: Fixed
Revision = 627116
> SOAPHeader children should be SOAPHeaderBlock objects
> -----------------------------------------------------
>
> Key: WSCOMMONS-302
> URL: https://issues.apache.org/jira/browse/WSCOMMONS-302
> Project: WS-Commons
> Issue Type: Bug
> Components: AXIOM
> Reporter: Rich Scheuerle
>
> Problem:
> The children of a SOAPHeader objects should be text or SOAPHeaderBlock
> objects.
> Adding raw OMElement blocks results in a ClassCastException downstream when
> the children are accessed via SOAPHeader iterators.
> Solution:
> Unfortunately there are legacy tests in Axis2 that seem to depend on this
> ill-defined behavior.
> So the solution is to add trace to SOAPHeader.addChild when an attempt is
> made to add a raw OMElement.
> An exception is dumped to the trace to make it easy to locate the ill-behaved
> caller.
> I also fixed the Axiom tests (1 test) that accidentally added an OMElement to
> a SOAPHeader.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]