+ Start a Discussion
hemantgarghemantgarg 

WebService Callout mock does not seem to work

Hi, I followed below post to mock a webservice callout for test class :- http://www.salesforce.com/us/developer/docs/apexcode/Content/apex_callouts_wsdl2apex_testing.htm but it does not seem to work, is there any other setting required to make it work ? API Version is 26.0 and I am doing it on developer edition. It is still throwing error saying "System.CalloutException: You have uncommitted work pending. Please commit or rollback before calling out " Can anyone please help me ? Thanks in advance .
Jia HuJia Hu