[ 
https://issues.apache.org/jira/browse/AXIS2C-1515?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Bill Blough updated AXIS2C-1515:
--------------------------------
    Component/s: code generation

> WSDL2C: generated code in axis2_svc_skel_<wsname>_invoke() should not set 
> error on NULL return value
> ----------------------------------------------------------------------------------------------------
>
>                 Key: AXIS2C-1515
>                 URL: https://issues.apache.org/jira/browse/AXIS2C-1515
>             Project: Axis2-C
>          Issue Type: Bug
>          Components: code generation
>    Affects Versions: Current (Nightly)
>         Environment: Windows XP
>            Reporter: Dave Meier
>            Priority: Critical
>
> Using:
> org.apache.axis2.wsdl.WSDL2C -f -uri aewebservicesaxis70.wsdl -o 
> aewebservicesaxis70 -d adb -ss -sd
> The following code is generated for each web service method:
>       ret_val35 =  axis2_skel_aewebservicesaxis70_UpdateItemWithName(env 
> ,input_val35 );
>       if ( NULL == ret_val35 )
>       {
>         AXIS2_ERROR_SET(env->error, AXIS2_ERROR_DATA_ELEMENT_IS_NULL, 
> AXIS2_FAILURE);
>         AXIS2_LOG_ERROR(env->log, AXIS2_LOG_SI, "NULL returnted from the 
> business logic from UpdateItemWithName ");
>         return NULL; 
>       }
> By setting the error whenever NULL is returned, my error that I have already 
> set inside my skeleton method gets overwritten.  For now I have deleted all 
> the error setting lines from here and simply return NULL, which causes my 
> error not to get lost.  Suggest either not setting an error for this case or 
> only set the error if one is not already set.



--
This message was sent by Atlassian JIRA
(v7.6.14#76016)

---------------------------------------------------------------------
To unsubscribe, e-mail: c-dev-unsubscr...@axis.apache.org
For additional commands, e-mail: c-dev-h...@axis.apache.org

Reply via email to