+ Start a Discussion
ChrisMcLChrisMcL 

Calling local Webservice from packaged AJAX script

Hey,

 

In my managed package I have a VF page that uses the AJAX toolkit to invoke some Apex webservice, like so:

 

var x = sforce.apex.execute("myClass", "method", {});

 

Notice that there is no namespace specified. I was hoping that by packaging and installing this into a client org the above script would call the *local* version of myClass.method(). Am I hoping for nothing here? Or is my assumption correct?

 

Thanks!