Newer Version Available

This content describes an older version of this product. View Latest

SOAP API and SOAP Headers for Apex

This appendix details the SOAP API calls and objects that are available by default for Apex.

Apex class methods can be exposed as custom SOAP Web service calls. This allows an external application to invoke an Apex Web service to perform an action in Salesforce. Use the webservice keyword to define these methods. For more information, see Considerations for Using the webservice Keyword.

Note

Any Apex code saved using SOAP API calls uses the same version of SOAP API as the endpoint of the request. For example, if you want to use SOAP API version 51.0, use endpoint 51.0:
1https://yourInstance.salesforce.com/services/Soap/s/51.0

For information on all other SOAP API calls, including those that can be used to extend or implement any existing Apex IDEs, contact your Salesforce representative.

The following are SOAP API calls:

The following SOAP headers are available in SOAP API calls for Apex:

Also see the Metadata API Developer Guide for two additional calls: