Return-Path: X-Original-To: apmail-ws-dev-archive@www.apache.org Delivered-To: apmail-ws-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 05E9F40E6 for ; Mon, 6 Jun 2011 09:24:24 +0000 (UTC) Received: (qmail 55776 invoked by uid 500); 6 Jun 2011 09:24:23 -0000 Delivered-To: apmail-ws-dev-archive@ws.apache.org Received: (qmail 55581 invoked by uid 500); 6 Jun 2011 09:24:23 -0000 Mailing-List: contact dev-help@ws.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ws.apache.org Delivered-To: mailing list dev@ws.apache.org Received: (qmail 55574 invoked by uid 99); 6 Jun 2011 09:24:22 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 09:24:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 06 Jun 2011 09:24:21 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id CC601103EB0 for ; Mon, 6 Jun 2011 09:24:01 +0000 (UTC) Date: Mon, 6 Jun 2011 09:24:01 +0000 (UTC) From: "Colm O hEigeartaigh (JIRA)" To: dev@ws.apache.org Message-ID: <1950670519.25.1307352241833.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <2086222510.70866.1307339327369.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Commented] (WSS-293) Getting exception when rampart is engaged without addressing at client side MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/WSS-293?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13044753#comment-13044753 ] Colm O hEigeartaigh commented on WSS-293: ----------------------------------------- This sounds more like a Rampart issue, shouldn't this by logged in the Rampart JIRA? https://issues.apache.org/jira/browse/Rampart Colm. > Getting exception when rampart is engaged without addressing at client side > --------------------------------------------------------------------------- > > Key: WSS-293 > URL: https://issues.apache.org/jira/browse/WSS-293 > Project: WSS4J > Issue Type: Bug > Components: WSS4J Core > Affects Versions: 1.5.10 > Environment: windows > Reporter: shivendra tripathi > Assignee: Colm O hEigeartaigh > > Steps to reproduce: > 1. Engage rampart and use policy based configuarion > 2. Don't engage any other module like addressing > 3. Use OperationClient at client side and create soap envelope as follows > SOAPEnvelope envelope = soapFactory.createSOAPEnvelope();// don't use soapFactory.getDefaultEnvelope() to create soap envelope > SOAPBody sb = soapFactory.createSOAPBody(envelope); > On execution following exception is thrown, since WSS4J is inserting the header which is instance of OMElement and not of SOAPHeader. > Caused by: org.apache.rampart.RampartException: Error in extracting message properties > at org.apache.rampart.RampartMessageData.(RampartMessageData.java:389) > at org.apache.rampart.MessageBuilder.build(MessageBuilder.java:61) > at org.apache.rampart.handler.RampartSender.invoke(RampartSender.java:64) > ... 59 more > 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:110) > at org.apache.axiom.soap.impl.dom.SOAPEnvelopeImpl.insertBefore(SOAPEnvelopeImpl.java:164) > at org.apache.ws.security.util.WSSecurityUtil.prependChildElement(WSSecurityUtil.java:646) > at org.apache.ws.security.util.WSSecurityUtil.findWsseSecurityHeaderBlock(WSSecurityUtil.java:722) > at org.apache.ws.security.message.WSSecHeader.insertSecurityHeader(WSSecHeader.java:146) > at org.apache.rampart.RampartMessageData.(RampartMessageData.java:379) -- This message is automatically generated by JIRA. For more information on JIRA, see: http://www.atlassian.com/software/jira --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@ws.apache.org For additional commands, e-mail: dev-help@ws.apache.org