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 999019C0A for ; Thu, 27 Oct 2011 22:08:53 +0000 (UTC) Received: (qmail 22979 invoked by uid 500); 27 Oct 2011 22:08:52 -0000 Delivered-To: apmail-ws-dev-archive@ws.apache.org Received: (qmail 22624 invoked by uid 500); 27 Oct 2011 22:08:52 -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 22610 invoked by uid 99); 27 Oct 2011 22:08:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Oct 2011 22:08:52 +0000 X-ASF-Spam-Status: No, hits=-2000.5 required=5.0 tests=ALL_TRUSTED,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; Thu, 27 Oct 2011 22:08:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 5B197323CCE for ; Thu, 27 Oct 2011 22:06:32 +0000 (UTC) Date: Thu, 27 Oct 2011 22:06:32 +0000 (UTC) From: "Andreas Veithen (Updated) (JIRA)" To: dev@ws.apache.org Message-ID: <1719658548.27361.1319753192374.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <909985552.6684.1319382152064.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] [Updated] (AXIOM-394) Axiom should not allow creation of SOAPFaultSubCode elements for SOAP 1.1 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/AXIOM-394?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andreas Veithen updated AXIOM-394: ---------------------------------- Fix Version/s: 1.2.15 > Axiom should not allow creation of SOAPFaultSubCode elements for SOAP 1.1 > ------------------------------------------------------------------------- > > Key: AXIOM-394 > URL: https://issues.apache.org/jira/browse/AXIOM-394 > Project: Axiom > Issue Type: Bug > Components: API > Affects Versions: 1.2.12 > Reporter: Andreas Veithen > Priority: Minor > Fix For: 1.2.15 > > > Axiom currently allows creating and adding SOAPFaultSubCode elements to SOAP 1.1 faults, although the concept of subcode doesn't exist in SOAP 1.1. To avoid generating invalid SOAP messages, the SOAP11FaultCodeImpl classes in LLOM and DOOM override the internalSerialize method to silently skip the SOAPFaultSubCode node. However, the element is still visible when requesting an XMLStreamReader or a SAXSource. > This can be shown using the following code: > SOAPFactory factory = OMAbstractFactory.getSOAP11Factory(); > SOAPFault fault = factory.createSOAPFault(); > SOAPFaultCode code = factory.createSOAPFaultCode(fault); > factory.createSOAPFaultSubCode(code); > System.out.println("Using serialize:"); > fault.serialize(System.out); > System.out.println(); > System.out.println("Using pull parser:"); > XMLStreamWriter writer = StAXUtils.createXMLStreamWriter(System.out); > new StreamingOMSerializer().serialize(fault.getXMLStreamReader(), writer); > writer.close(); > System.out.println(); > System.out.println("Using SAXSource:"); > TransformerFactory.newInstance().newTransformer().transform(fault.getSAXSource(true), new StreamResult(System.out)); > The output is: > Using serialize: > > Using pull parser: > > Using SAXSource: > > This behavior is inconsistent and Axiom should forbid creating SOAPFaultSubCode objects for SOAP 1.1. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa 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