axis-java-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andreas Veithen (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (RAMPART-418) Adding custom soap header fails with rampart
Date Thu, 10 Dec 2015 20:21:11 GMT

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

Andreas Veithen updated RAMPART-418:
------------------------------------
    Fix Version/s:     (was: 1.6.3)

> Adding custom soap header fails with rampart
> --------------------------------------------
>
>                 Key: RAMPART-418
>                 URL: https://issues.apache.org/jira/browse/RAMPART-418
>             Project: Rampart
>          Issue Type: Bug
>          Components: rampart-core
>    Affects Versions: 1.6.1
>            Reporter: balachandran ajanthan
>
> Adding custom header as bellow fails with following exception[0] when the rampart is
engaged in a client.
>  OMFactory omFactory =OMAbstractFactory.getOMFactory();
>     OMNamespace omNamespace = omFactory.createOMNamespace("http://example.com/...", "sp");
>     OMElement header = omFactory.createOMElement("sptest", omNamespace);
>     header.setText("test");
>     stub._getServiceClient().addHeader(header);
> [0]
> Caused by: org.apache.rampart.RampartException: Error in extracting message properties
>     at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:379)
>     at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61)
>     at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:65)
>     ... 10 more
> Caused by: org.apache.ws.security.WSSecurityException: Error in converting SOAP Envelope
to Document; nested exception is: 
>     java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl cannot
be cast to org.apache.axiom.soap.SOAPHeaderBlock
>     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:191)
>     at org.apache.rampart.RampartMessageData.<init>(RampartMessageData.java:270)
>     ... 12 more
> Caused by: java.lang.ClassCastException: org.apache.axiom.om.impl.llom.OMElementImpl
cannot be cast to org.apache.axiom.soap.SOAPHeaderBlock
>     at org.apache.rampart.util.Axis2Util.getDocumentFromSOAPEnvelope(Axis2Util.java:141)
>     ... 13 more



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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


Mime
View raw message