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
crazyforcercrazyforcer 

WSDL doen't have the details of the methods and properties of a generic class

I have created a generic global class A in force.com.

 

A has two member variables.

 

I've created a web service method returning a list of objects of class A.

 

When I checked WSDLreference for class A has been created but without no references to its varibles and functons. 

 

How can we solve this ?

 

 

Best Answer chosen by Admin (Salesforce Developers) 
SuperfellSuperfell
global class myService {
global class lineItem {
webservice Id product2Id;
webservice double ammount;
}

webservice static list <Id> createOppty(Id contactId, List <LineItem> items) {
return null;
}
}
Message Edited by SimonF on 05-27-2009 10:34 PM

All Answers

SuperfellSuperfell
You have to mark the members of A with the WebService attribute for those members that you want to be web service exposed.
crazyforcercrazyforcer
No, I tried it. But I was not allowed to mark a variable as a web attribute. only methods can be marked as webservice attribute
SuperfellSuperfell
global class myService {
global class lineItem {
webservice Id product2Id;
webservice double ammount;
}

webservice static list <Id> createOppty(Id contactId, List <LineItem> items) {
return null;
}
}
Message Edited by SimonF on 05-27-2009 10:34 PM
This was selected as the best answer
crazyforcercrazyforcer
Thank you. Simon. It works.