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
sgumsgum 

call package metods

please, anybody knowns how to call a method defined in an Apex package, using java API?
thanks
benjasikbenjasik
you should be able to download the wsdl and then use axis to make the calls to your methods.
manNahmanNah
ok. I downloaded the wsdl file for my package and i applied apache Axis to generate java clases.
Now i do not know how to use this clases to call the methods. Can reply with some examples ?.
In the package there are a webService method called "calculate". Axis generated "Calculate.java" and "CalculateResponse.java". I supose that i should use this clases, but how!.

thanks.
dai.odaharadai.odahara
HI, manNah
 
What you're trying excuting app is just "Calculate" service? If so, you can only see web samples (by google sth). Deploying the calculate service on the server side and then coding client which calls the calculate service..
 
But if you wanna use sfdc objects, you should use login to the sfdc at first diffenetly.
You can do anything create, update, delete or something like that after login success.
 
You refer sfdc object as well as usual java coding, that's all.