axis-c-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "nadir amra (JIRA)" <axis-c-...@ws.apache.org>
Subject [jira] Closed: (AXISCPP-547) Problem in getAnyObject() API in Call class
Date Wed, 31 Jan 2007 08:42:05 GMT

     [ 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<<e.what();
>      }
>  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


Mime
View raw message