Return-Path: Delivered-To: apmail-ws-axis-dev-archive@www.apache.org Received: (qmail 21889 invoked from network); 23 May 2008 11:17:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 23 May 2008 11:17:30 -0000 Received: (qmail 78348 invoked by uid 500); 23 May 2008 11:17:31 -0000 Delivered-To: apmail-ws-axis-dev-archive@ws.apache.org Received: (qmail 78236 invoked by uid 500); 23 May 2008 11:17:31 -0000 Mailing-List: contact axis-cvs-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list axis-cvs@ws.apache.org Received: (qmail 78226 invoked by uid 500); 23 May 2008 11:17:31 -0000 Delivered-To: apmail-ws-axis2-cvs@ws.apache.org Received: (qmail 78222 invoked by uid 99); 23 May 2008 11:17:31 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 04:17:31 -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.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 23 May 2008 11:16:52 +0000 Received: by eris.apache.org (Postfix, from userid 65534) id EE2932388A05; Fri, 23 May 2008 04:17:08 -0700 (PDT) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: svn commit: r659502 - in /webservices/axis2/trunk/c/axiom/src/soap: soap_fault.c soap_fault_reason.c soap_fault_text.c Date: Fri, 23 May 2008 11:17:08 -0000 To: axis2-cvs@ws.apache.org From: milinda@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20080523111708.EE2932388A05@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org Author: milinda Date: Fri May 23 04:17:07 2008 New Revision: 659502 URL: http://svn.apache.org/viewvc?rev=659502&view=rev Log: Fix for JIRA https://issues.apache.org/jira/browse/AXIS2C-1147. Modified: webservices/axis2/trunk/c/axiom/src/soap/soap_fault.c webservices/axis2/trunk/c/axiom/src/soap/soap_fault_reason.c webservices/axis2/trunk/c/axiom/src/soap/soap_fault_text.c Modified: webservices/axis2/trunk/c/axiom/src/soap/soap_fault.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/soap/soap_fault.c?rev=659502&r1=659501&r2=659502&view=diff ============================================================================== --- webservices/axis2/trunk/c/axiom/src/soap/soap_fault.c (original) +++ webservices/axis2/trunk/c/axiom/src/soap/soap_fault.c Fri May 23 04:17:07 2008 @@ -75,6 +75,7 @@ soap_fault->frole = NULL; soap_fault->om_ele_node = NULL; soap_fault->soap_builder = NULL; + soap_fault->soap_version = -1; return soap_fault; } Modified: webservices/axis2/trunk/c/axiom/src/soap/soap_fault_reason.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/soap/soap_fault_reason.c?rev=659502&r1=659501&r2=659502&view=diff ============================================================================== --- webservices/axis2/trunk/c/axiom/src/soap/soap_fault_reason.c (original) +++ webservices/axis2/trunk/c/axiom/src/soap/soap_fault_reason.c Fri May 23 04:17:07 2008 @@ -58,8 +58,8 @@ fault_reason->om_ele_node = NULL; fault_reason->fault_texts = NULL; - - return fault_reason; + fault_reason->soap_version = -1; + return fault_reason; } AXIS2_EXTERN axiom_soap_fault_reason_t *AXIS2_CALL Modified: webservices/axis2/trunk/c/axiom/src/soap/soap_fault_text.c URL: http://svn.apache.org/viewvc/webservices/axis2/trunk/c/axiom/src/soap/soap_fault_text.c?rev=659502&r1=659501&r2=659502&view=diff ============================================================================== --- webservices/axis2/trunk/c/axiom/src/soap/soap_fault_text.c (original) +++ webservices/axis2/trunk/c/axiom/src/soap/soap_fault_text.c Fri May 23 04:17:07 2008 @@ -74,8 +74,8 @@ axiom_soap_fault_reason_t * parent) { axiom_soap_fault_text_t *fault_text = NULL; - int soap_version = -1; axiom_element_t *this_ele = NULL; + int soap_version = -1; axiom_node_t *this_node = NULL; axiom_namespace_t *parent_ns = NULL; axiom_node_t *parent_node = NULL; @@ -104,8 +104,9 @@ axiom_soap_fault_text_free(fault_text, env); return NULL; } - soap_version = axiom_soap_fault_reason_get_soap_version(parent, env); - if (soap_version == AXIOM_SOAP12) + + soap_version = axiom_soap_fault_reason_get_soap_version(parent, env); + if (AXIOM_SOAP12 == soap_version) { parent_ns = axiom_element_get_namespace(parent_ele, env, parent_node); }