function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
Shiva RajendranShiva Rajendran 

Need to consume web service written and run in java through salesforce apex method

I have a web service in java running in my local machine. I need to know , if this can be called from salesforce apex code?
Best Answer chosen by Shiva Rajendran
James LoghryJames Loghry
If it's exposed externally, then Salesforce should be able to interact with it.  Salesforce has the ability to call either RESTful or SOAP services (or really any HTTP service).  For more on how to integrate with Salesforce, check out the following Trailhead module: https://trailhead.salesforce.com/module/apex_integration_services

All Answers

James LoghryJames Loghry
If it's exposed externally, then Salesforce should be able to interact with it.  Salesforce has the ability to call either RESTful or SOAP services (or really any HTTP service).  For more on how to integrate with Salesforce, check out the following Trailhead module: https://trailhead.salesforce.com/module/apex_integration_services
This was selected as the best answer
Shiva RajendranShiva Rajendran
Thanks for the reply @James