[ 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to