Learn from industry experts! Admin batch starts from 19 Feb.
Hurry up!
Book your slot now!

13

SOAP API Part 2

Exposing Apex Methods As SOAP Web Services 

You can expose your Apex classes and methods so that external applications can access your code and your application through the REST architecture. 

Apex SOAP Web services allow an external application to invoke Apex methods through SOAP Web services. 

WebService Methods 

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 Example: To create an account and insert it in Salesforce.

global class MyWebService 
{ 
webService static void makeAccount() 
{ 
// Your code here 
} 
}
Salesforce Developer
Next Topic

Need more support?

Get a head start with our FREE study notes!

Learn more and get all the answers you need at zero cost. Improve your skills using our detailed notes prepared by industry experts to help you excel.

Book A 15-Minutes Free Career Counselling Today!