+ Start a Discussion

call package metods

please, anybody knowns how to call a method defined in an Apex package, using java API?
you should be able to download the wsdl and then use axis to make the calls to your methods.
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!.

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.