Return-Path: Delivered-To: apmail-ws-axis-c-user-archive@www.apache.org Received: (qmail 86048 invoked from network); 20 Oct 2007 04:29:42 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2007 04:29:42 -0000 Received: (qmail 47981 invoked by uid 500); 20 Oct 2007 04:29:29 -0000 Delivered-To: apmail-ws-axis-c-user-archive@ws.apache.org Received: (qmail 47966 invoked by uid 500); 20 Oct 2007 04:29:29 -0000 Mailing-List: contact axis-c-user-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C User List" Reply-To: "Apache AXIS C User List" Delivered-To: mailing list axis-c-user@ws.apache.org Received: (qmail 47955 invoked by uid 99); 20 Oct 2007 04:29:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 21:29:29 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [209.68.5.16] (HELO relay02.pair.com) (209.68.5.16) by apache.org (qpsmtpd/0.29) with SMTP; Sat, 20 Oct 2007 04:29:30 +0000 Received: (qmail 41646 invoked from network); 20 Oct 2007 04:29:00 -0000 Received: from unknown (HELO ?10.100.1.78?) (unknown) by unknown with SMTP; 20 Oct 2007 04:29:00 -0000 X-pair-Authenticated: 222.165.132.170 Message-ID: <47197D07.90008@wso2.com> Date: Sat, 20 Oct 2007 09:59:03 +0600 From: Samisa Abeysinghe User-Agent: Thunderbird 1.5 (X11/20060313) MIME-Version: 1.0 To: Apache AXIS C User List Subject: Re: Bug in axis2c xml parsing? References: <489947c0710181302o7d0cbe16j5f319398da97af44@mail.gmail.com> In-Reply-To: <489947c0710181302o7d0cbe16j5f319398da97af44@mail.gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subra A Narayanan wrote: > Hello folks, > > I use the following code to parse an incoming ws request. I am posting > only snippets of the code for sake of brevity > > ******************************************************************CODE > BEGIN*************************************************************************** > > axutil_qname_t *Qname = axutil_qname_create(env, "Price", > MY_NAMESPACE_URI, MY_NAMESPACE_PREFIX); > axiom_node_t *myNode = NULL; > axiom_element_t *myElement = NULL; > myElement = axiom_element_get_first_child_with_qname(rootElement, > env, Qname, rootNode, &myNode); > > if (myNode) > { > ................................... > ................................... > ................................... > return AXIS2_SUCCESS; > } > else > { > AXIS2_LOG_DEBUG(env->log, AXIS2_LOG_SI, "Error!!"); > return AXIS2_FAILURE; > } > > ******************************************************************CODE > END************************************************************************** > > > If I have a node like this, it just works fine (here 'MyOperation' is > the root node from above) > > > 250 > > > > but if I have a node like this > > > > > > the control goes in to the else condition and it returns AXIS2_FAILURE > > I would think this shouldn't be happening since we do have a 'Price' > node although it is empty. > > Is this by design or have I found a bug? Looks like this is a bug. What is the Axis2/C version that you are using and also the parser that you are using? If possible, please raise a Jira with the test program so that I can have a further look into this. Samisa... > > > Thanks, > Subra -- Samisa Abeysinghe : WSO2 WSF/PHP "http://wso2.org/projects/wsf/php?WSO2 Web Services Framework%2FPHP - Open source PHP extention for providing and consuming Web services in PHP" --------------------------------------------------------------------- To unsubscribe, e-mail: axis-c-user-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-user-help@ws.apache.org