You are here:
Apex FAQ
Frequently asked questions about external Web services, supported WSDL Schema types, and differences between a Apex classes and triggers.
Required Editions
| Available in: Salesforce Classic (not available in all orgs) and Lightning Experience |
| Available in: Enterprise, Performance, Unlimited, Developer, and Database.com Editions |
Can I Call an External Web Service With Apex?
Yes. You can call operations of Web services with Apex. Using the Apex Classes page, you must first generate an Apex class from the WSDL document of the external Web service before you can call its methods.
What are the Supported WSDL Schema Types for Apex Callouts?
We recommend that you validate the WSDL document and ensure that it contains supported schema types. If a type is not supported by Apex, a callout to a Web service operation may result in an error returned in the callout response , such as “Unable to parse callout response. Apex type not found for element item”.
What Is The Difference Between Apex Classes And Triggers?
An Apex class is a template or blueprint from which Apex objects are created. Classes consist of other classes, user-defined methods, variables, exception types, and static initialization code A trigger is Apex code that executes before or after specific data manipulation language (DML) events occur, such as before object records are inserted into the database, or after records have been deleted. A trigger is associated with a standard or custom object and can call methods of Apex classes.

