Discussions
- General Development
- Schema Development
- Apex Code Development
- Visualforce Development
- Formulas & Validation Rules
- Security
- Mobile
- Force.com Sites & Site.com
- Chatter Development
- Java Development
- .NET Development
- Perl, PHP, Python & Ruby
- Desktop Integration
- APIs and Integrations
- Visual Workflow
- Apple, Mac and OS X
- VB and Office Development
- AppExchange Directory & Packaging
- Salesforce Labs & Open Source Projects
- Other Salesforce Applications
- Jobs Board
- Force.com Discussion Boards
- :
- Developer Boards for Force.com and Database.com
- :
- General Development
- :
- WebService Callout mock does not seem to work
turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
WebService Callout mock does not seem to work
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-20-2013 07:11 AM
Hi, I followed below post to mock a webservice callout for test class :- http://www.salesforce.com/us/developer/docs/apexco de/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 .
Message 1 of 2
(194 Views)
0
Re: WebService Callout mock does not seem to work
[ Edited ]Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
01-20-2013 11:31 PM - edited 01-20-2013 11:31 PM
This is an unknown issue. You can not use DML in the WebServiceMock or HttpCalloutMock. Check the links below,
http://success.salesforce.com/ideaView?id=08730000
http://blogs.developerforce.com/developer-relation

