axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Jose (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Commented: (AXISCPP-547) Problem in getAnyObject() API in Call class
Date Thu, 17 Mar 2005 04:52:20 GMT
     [ http://issues.apache.org/jira/browse/AXISCPP-547?page=comments#action_61076 ]
     
James Jose commented on AXISCPP-547:
------------------------------------

In the testcase I used getAnyobject() 3 times to test the behaviour of this API when there
is no data to return.

I feel if there is no data to return, then API should return "NULL".

Calling checkMessage() after getAnyobject() results in AxisException is fine. Currently e.what()
returning an empty string.

it's good if e.what() gives some error message.

> Problem in getAnyObject() API in Call class
> -------------------------------------------
>
>          Key: AXISCPP-547
>          URL: http://issues.apache.org/jira/browse/AXISCPP-547
>      Project: Axis-C++
>         Type: Bug
>   Components: Client - Stub
>     Reporter: James Jose
>     Assignee: Mark Whitlock

>
> 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<<e.what();
>      }
>  Here e.what() returns an empty string.It should display some error message.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


Mime
View raw message