+ Start a Discussion

Want to call java code from salesforce


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?


David VPDavid VP

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.

Thanks David for the reply