[SalesForce] Accessing Salesforce Apex Class from External java Application

I have a java application which needs to access the Apex Class methods. So, I create a global Apex Class with WebService methods and created a WSDL for this class, and included this in my Java Application, so the WSDL contains my newly created WebService methods.
I have created a SOAP connection for this WSDL and accessed these Webservice mthods.

But, I am looking for a solution, Where I don't need to export a Specific webservice WSDL and, able to connect to Salesforce Classes in a generic way. I can specify a class name and method name in properties file and access it, without changing the WSDL every time.
Please suggest, If there is any possible solution!!

Best Answer

You can always use REST api methods instead of SOAP based api methods.

This link: Creating_REST_APIs_using_Apex_REST can help explain how. Rest methods are, in my opinion, cleaner and require no wsdls

Related Topic