Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 16065 invoked from network); 16 May 2008 07:09:36 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 16 May 2008 07:09:36 -0000 Received: (qmail 12352 invoked by uid 500); 16 May 2008 07:09:32 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 12300 invoked by uid 500); 16 May 2008 07:09:32 -0000 Mailing-List: contact axis-dev-help@ws.apache.org; run by ezmlm Precedence: bulk Reply-To: axis-dev@ws.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-dev@ws.apache.org Received: (qmail 12289 invoked by uid 99); 16 May 2008 07:09:32 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 00:09:32 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 16 May 2008 07:08:35 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id AEDDA234C10D for ; Fri, 16 May 2008 00:08:55 -0700 (PDT) Message-ID: <573117171.1210921735701.JavaMail.jira@brutus> Date: Fri, 16 May 2008 00:08:55 -0700 (PDT) From: "Dimuthu Leelarathne (JIRA)" To: axis-dev@ws.apache.org Subject: [jira] Created: (AXIS2-3803) AxisFault does not properly serialize into SOAP12 SOAPFault when a org.apache.axiom.soap.SOAPFaultValue is present in the SOAPFaultCode MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org AxisFault does not properly serialize into SOAP12 SOAPFault when a org.apache.axiom.soap.SOAPFaultValue is present in the SOAPFaultCode --------------------------------------------------------------------------------------------------------------------------------------- Key: AXIS2-3803 URL: https://issues.apache.org/jira/browse/AXIS2-3803 Project: Axis 2.0 (Axis2) Issue Type: Bug Reporter: Dimuthu Leelarathne Here is the result I want to create. soapenv:Receiver wsse:InvalidSecurity Missing wsse:Security header in request But the closest that I managed is this. soapenv:Receiver unknown java.lang.NullPointerException at org.apache.axiom.soap.impl.llom.soap12.SOAP12FaultReasonImpl.getText(SOAP12FaultReasonImpl.java:68) Here are the methods I tried with. But none of them yeild the exact result. private AxisFault buildAxisFaultForSOAP12(QName qNameSubFaultCode, String reason, Exception e){ SOAPFactory factory = OMAbstractFactory.getSOAP12Factory(); SOAPFaultCode faultCode = factory.createSOAPFaultCode(); SOAPFaultValue faultValue = factory.createSOAPFaultValue(faultCode); faultValue.setText(SOAP12Constants.FAULT_CODE_SENDER); SOAPFaultReason faultReason = factory.createSOAPFaultReason(); faultReason.setText(reason); AxisFault fault = new AxisFault(faultCode, faultReason, null, null, null); List subCodes = new ArrayList(); subCodes.add(qNameSubFaultCode); fault.setFaultSubCodes(subCodes); return fault; } private AxisFault buildAxisFaultForSOAP12(QName qNameSubFaultCode, String reason, Exception e){ SOAPFactory factory = OMAbstractFactory.getSOAP12Factory(); SOAPFaultCode faultCode = factory.createSOAPFaultCode(); SOAPFaultValue faultValue = factory.createSOAPFaultValue(faultCode); faultValue.setText(SOAP12Constants.FAULT_CODE_SENDER); SOAPFaultSubCode subCode = factory.createSOAPFaultSubCode(faultCode); subCode.setText(qNameSubFaultCode); faultCode.setSubCode(subCode); SOAPFaultReason faultReason = factory.createSOAPFaultReason(); faultReason.setText(reason); AxisFault fault = new AxisFault(faultCode, faultReason, null, null, null); return fault; } -- 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: axis-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-dev-help@ws.apache.org