[ 
https://issues.apache.org/jira/browse/RAMPART-419?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Robert Lazarski updated RAMPART-419:
------------------------------------
    Fix Version/s: 2.0.0

> WS Security header is not being serialized when header element is not 
> instance of "org.apache.axiom.soap.SOAPHeader"
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: RAMPART-419
>                 URL: https://issues.apache.org/jira/browse/RAMPART-419
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.6.2
>            Reporter: Detelin Hadzhiev
>            Assignee: Robert Lazarski
>            Priority: Major
>             Fix For: 2.0.0
>
>
> 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:
> {noformat}
> 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(SOAPEnvelopeImpl.java:109)
>             at 
> org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl.insertBefore(SOAPEnvelopeImpl.java:163)
>             at 
> org.apache.ws.security.util.WSSecurityUtil.prependChildElement(WSSecurityUtil.java:684)
>             at 
> org.apache.ws.security.util.WSSecurityUtil.findWsseSecurityHeaderBlock(WSSecurityUtil.java:729)
>             at 
> org.apache.ws.security.message.WSSecHeader.insertSecurityHeader(WSSecHeader.java:138)
>             at 
> org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:371)
>             at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61)
>             at 
> org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:81)
>             at org.apache.axis2.engine.Phase.invokeHandler(Phase.java:340)
>             at org.apache.axis2.engine.Phase.invoke(Phase.java:313)
>             at org.apache.axis2.engine.AxisEngine.invoke(AxisEngine.java:262)
>             at org.apache.axis2.engine.AxisEngine.send(AxisEngine.java:427)
>             at 
> org.apache.axis2.receivers.AbstractInOutSyncMessageReceiver.invokeBusinessLogic(AbstractInOutSyncMessageReceiver.java:50)
>             at 
> org.apache.axis2.receivers.AbstractMessageReceiver.receive(AbstractMessageReceiver.java:120)
>             at org.apache.axis2.engine.AxisEngine.receive(AxisEngine.java:181)
>             at 
> org.apache.axis2.transport.http.HTTPTransportUtils.processHTTPPostRequest(HTTPTransportUtils.java:172)
>  
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: java-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: java-dev-h...@axis.apache.org

Reply via email to