+ 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).
 
Thanks,
Gino
 
SuperfellSuperfell
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!

-Gino