WSDL2C: generated code in axis2_svc_skel_<wsname>_invoke() should not set error 
on NULL return value
----------------------------------------------------------------------------------------------------

                 Key: AXIS2-3463
                 URL: https://issues.apache.org/jira/browse/AXIS2-3463
             Project: Axis 2.0 (Axis2)
          Issue Type: Bug
          Components: codegen
    Affects Versions: 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 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