Thursday, January 5, 2012

NO-SOFTWARE Salesforce Tutorial: Internal Web Service Callouts

Another developer recently talked about a situation where an Apex web service needed to be exposed to internal, authenticated users in order to work around a DML limitation.

The concept behind the workaround was very intriguing, and after playing around with some Apex code I came up with a tutorial that I hope others may find useful: NO-SOFTWARE Salesforce Tutorial: Internal Web Service Callouts

The key concepts demonstrated in the tutorial include:
  • Generating a WSDL from a global Apex class
  • Generating Apex from a WSDL created from a global Apex class
  • Using the UserInfo.getSessionId method to make callouts to internal web services as an authenticated user