ws-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Detelin Hadzhiev (JIRA)" <>
Subject [jira] [Commented] (AXIOM-459) WS Security header is not being serialized when header element is not instance of "org.apache.axiom.soap.SOAPHeader"
Date Wed, 09 Jul 2014 07:18:04 GMT


Detelin Hadzhiev commented on AXIOM-459:

Hi Veithen,
There is some corner case when Rampart does not handle this.
This is always reproducible when using secured web services without addressing. 
See the exception in the description.

> WS Security header is not being serialized when header element is not instance of "org.apache.axiom.soap.SOAPHeader"
> --------------------------------------------------------------------------------------------------------------------
>                 Key: AXIOM-459
>                 URL:
>             Project: Axiom
>          Issue Type: Bug
>          Components: DOOM
>    Affects Versions: 1.2.13
>            Reporter: Detelin Hadzhiev
> Currently wss4j using DOM to produce WS security headers. When it is combined with axiom
through the axis2 it would use the DOM implementation of axiom. Then wss4j inserts simplify
DOM element and axiom-dom would not process it.
> Here is the stack trace:
> Caused by: org.apache.axiom.soap.SOAPProcessingException: SOAP Envelope can not have
children other than SOAP Header and Body
>             at org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl.checkChild(
>             at org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl.insertBefore(
>             at
>             at
>             at
>             at org.apache.rampart.RampartMessageData.&lt;init>(
>             at
>             at org.apache.rampart.handler.RampartSender.invoke(
>             at org.apache.axis2.engine.Phase.invokeHandler(
>             at org.apache.axis2.engine.Phase.invoke(
>             at org.apache.axis2.engine.AxisEngine.invoke(
>             at org.apache.axis2.engine.AxisEngine.send(
>             at org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(
>             at org.apache.axis2.receivers.AbstractMessageReceiver.receive(
>             at org.apache.axis2.engine.AxisEngine.receive(
>             at org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(

This message was sent by Atlassian JIRA

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message