Activity › Forums › Salesforce® Discussions › What are the methods of WebServiceMock in Salesforce ? Salesforce® Discussions What are the methods of WebServiceMock in Salesforce ? Posted by Kirandeep on September 23, 2020 at 1:15 PM What are the methods of WebServiceMock in Salesforce ? Anuj replied 5 years, 8 months ago 2 Members · 1 Reply 1 Reply Anuj Member September 23, 2020 at 1:49 PM The following are methods for <samp>WebServiceMock</samp>. doInvoke(stub, soapRequest, responseMap, endpoint, soapAction, requestName, responseNamespace, responseName, responseType)The implementation of this method is called by the Apex runtime to send a fake response when a Web service callout is made after <samp>Test.setMock</samp> has been called. Log In to reply. Public All Members My Connections Only Me PublicAll MembersMy ConnectionsOnly Me Public All Members My Connections Only Me