i have one Ajax custom button
{!REQUIRESCRIPT("/soap/ajax/24.0/connection.js")}
{!REQUIRESCRIPT("/soap/ajax/20.0/apex.js")}
alert("k");
sforce.apex.execute("Account_chk","method1",{i:"{!Account.Id}"});
that callsAccount_chk
class
public class Account_chk {
public void method1(Id i) {
Account a=[select Id2_vod__c from Account where id = :i];
a.Id2_vod__c= 'kkkk';
update a;
}
}
errors out
{faultcode:'soapenv:Client',faultstring:'No operation available for request{http://soap.sforce.com/schemas/package/Account_chk}method1, please check the WSDL for the service.',}
please help