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
Gino BassoGino Basso 

Can I return a custom class (instance or list) from a WebService method?

The WebService method compiles successfully (the access modifier had to be global). But when I view the WSDL the type associated with the class name is an empty sequence. I can invoke the method, but I get nothing back (which one would expect given the WSDL).
You need to add the webservice attribute to those members of the class you want to expose on the webservice call, IIRC, there's an example of this in the apex docs.
Gino BassoGino Basso

That was it. Thanks!