+ Start a Discussion

APEX WebService - Valid Parameters?

I am trying to create a APEX code class with a method defined as a WebService. What are the valid parameter types that I can pass to this method? I tried using a Set, but it says that it's not a valid parameter type (It doesn’t give this error if the method isn't a WebService). Are only primitive data types valid? Is it possible to pass a Set of primitive data types?

primitive types, sobject's (like account, custom objects etc), classes, and arrays of these.
Sets & Maps are not supported because there's no standard SOAP serialization for these programatric structures.
There's a section in docs that covers all the web service related stuff, starts at page 123 in the apex language reference doc.