+ Start a Discussion
manNahmanNah 

calling packages methods

how can invoque a package method from s-controls ?
DevAngelDevAngel
Include the apex.js file (same location as connection.js) and use the execute method

sforce.apex.execute(<packageName>, <methodName>, {arg1Name: arg1Val, arg2Name: ag2Val...}, callBack);

You need to maker sure you package method has webService as the declaration.

webService String myMethod(arg1Name, arg2Name) {
    return 'String';
}
manNahmanNah
thanks !! now i need call it from java using web services. (i'm new...)
DevAngelDevAngel
You will need to download the wsdl for your package and go through all the same kind of gymnastics that you would for the standard Apex API to generate a client and then, off you go.
manNahmanNah
mmmm... I do not find examples. Can you guide me a little with some codes ? (as preview post is fine)

thanks in advance