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
manjirimanjiri 

Want to call java code from salesforce

HI,

I want to call API's from some site, I can call them through java code. So I want to display the result on Salesforce may be on visualForce page. So should I need to make my java code as webservice? and call it through apex controller?
If yes? Is there any example which I can refer? Which version of AXIS I should use?
or is there any other way to work for above problem?

Thanks

David VPDavid VP
Yes,

If you want to make calls from Salesforce (Apex code) to your java code then you need to expose them as webservices.
The Axis libraries will do just fine.
Check the docs on how to do this in Apex.


David
manjirimanjiri
Thanks David for the reply