Return-Path: Delivered-To: apmail-ws-axis-c-dev-archive@www.apache.org Received: (qmail 72960 invoked from network); 31 Jan 2007 08:42:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 08:42:30 -0000 Received: (qmail 99126 invoked by uid 500); 31 Jan 2007 08:42:34 -0000 Delivered-To: apmail-ws-axis-c-dev-archive@ws.apache.org Received: (qmail 99103 invoked by uid 500); 31 Jan 2007 08:42:34 -0000 Mailing-List: contact axis-c-dev-help@ws.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: List-Id: "Apache AXIS C Developers List" Reply-To: "Apache AXIS C Developers List" Delivered-To: mailing list axis-c-dev@ws.apache.org Received: (qmail 99055 invoked by uid 99); 31 Jan 2007 08:42:34 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 00:42:34 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Jan 2007 00:42:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id D037F71429F for ; Wed, 31 Jan 2007 00:42:05 -0800 (PST) Message-ID: <5627344.1170232925850.JavaMail.jira@brutus> Date: Wed, 31 Jan 2007 00:42:05 -0800 (PST) From: "nadir amra (JIRA)" To: axis-c-dev@ws.apache.org Subject: [jira] Closed: (AXISCPP-547) Problem in getAnyObject() API in Call class In-Reply-To: <1043475020.1110806888131.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/AXISCPP-547?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] nadir amra closed AXISCPP-547. ------------------------------ Resolution: Fixed Fix Version/s: current (nightly) If getAnyObject() is called before checkMessage() API, one gets: AxisSoapException: Cannot deserialize the requested element. If getAnyObject() any other time, you will get something, either an exception or whitespace or an AnyType with nothing in it. So I cannot recreate the problem with the latest code. > Problem in getAnyObject() API in Call class > ------------------------------------------- > > Key: AXISCPP-547 > URL: https://issues.apache.org/jira/browse/AXISCPP-547 > Project: Axis-C++ > Issue Type: Bug > Components: Client - Stub > Reporter: James Jose > Priority: Minor > Fix For: current (nightly) > > > 1. Calling getAnyObject() results in an unhandled exception if there is no data to return. API should return NULL,if there is no data to return. > 2. if getAnyObject() is called before checkMessage() API, then AxisException. > try{ > if (AXIS_SUCCESS == m_pCall->invoke()) > { > any = (AnyType*)m_pCall->getAnyObject(); > if(AXIS_SUCCESS == m_pCall->checkMessage("divResponse", "http://localhost/axis/Calculator")) > { > Ret = *(m_pCall->getElementAsInt("divReturn", 0)); > } > } > }Catch(Exception &e){ > cout< } > Here e.what() returns an empty string.It should display some error message. -- 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-c-dev-unsubscribe@ws.apache.org For additional commands, e-mail: axis-c-dev-help@ws.apache.org