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
Suresh(Suri)Suresh(Suri) 

Test coverage for webservice class

Hi,

Any one help to write test class for webservice class

Thank you
Florian HoehnFlorian Hoehn
You have to create a mock webservice to test the callout properly.

Have a look here how to do that: http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex_testing.htm

Hope this helps!

Florian