function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
SrinikaSrinika 

APEX Class Webservice keyword in parent class

Hi,

I have two classes. Lets call them "ParentClass" and "ChildClass". The ChildClass has "extended" the parents class.

 

Problem - When I return the ChildClass object (with status field set), from a webservice method, the "status" field is not visible in the WSDL and therefore is not getting returned in the response. What am I doing wrong here?

 

Here are their declarations.

 

global class ParentClass
{
      webservice String status;
}

 

 

global class ChildClass extends ParentClass
{
      webservice List<Device> deviceList;
}