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
NTNT 

NameSpace Issue

Hi All,
 
 
I have created a Visual Force page there is a need to call a web method of its Apex class.
Like:   sforce.apex.execute("ObjectiveView", "updateObjectBudg", {updateList:updateArr});
Here ObjectiveView is my Class name and updateObjectBudg is function name.
It was working fine.
 
Issue: I have given a NameSpace in my org(MD). after that the above line is not working but giving me an exceptiopn..
{faultcode:'soapenv:Client', faultstring:'No service available for class 'CampaignBudgetDetails'', }
 
I have tried to give the class name as sforce.apex.execute("MD__ObjectiveView","updateObjectBudg",{updateList:updateArr}) on the
but i m getting the same exception.
 
What should I do?
Please help me......
 
 
Nitin Gupta
JimRaeJimRae

The documentation seems to imply that you use the regular name for the namespace with dotted notation.

Code:
sforce.apex.execute("MD.ObjectiveView", "updateObjectBudg", {updateList:updateArr});

Did you try that?

 

 

dchasmandchasman
Why are you using the ajax toolkit to invoke a web service method on an apex class in a VF context instead of just using Visualforce's built in value and action binding support?