You need to sign in to do that
Don't have an account?
![ricardo@cloud2b.com.br ricardo@cloud2b.com.br](https://dfc-org-production.my.site.com/img/userprofile/default_profile_45_v2.png)
Problem with WebService
Hello People,
I have the class:
global class Parcelamento {
Webservice static String Parcela(String idOpp){
return Parcelamento.ExecutarParcelamento(idOpp);
}
public static String ExecutarParcelamento(String idOpp){
//operations
}
}
and my class test is:
private class testParcelamento {
static testMethod void myUnitTest() {
Parcelamento.ExecutarParcelamento([Select id from Opportunity limit 1].id);
}
}
And my error is: Save error: Method does not exist or incorrect signature: Parcelamento.ExecutarParcelamento(Id)
Help me.
Thank you
Hi ,
I just tried you code and I didn't get the error which you mentioned here.
I would like to mention here that I just include a single line
return null;
in the defenation of ExecutarParcelamento method in class Parcelamento .
Please try it once again and let me know if you still face the issue.
Please mark it as the solution if it answers your question.
Cheers ,
Niket
Certified Administrator | Certified Developer
MyBlog
All Answers
Hi ,
I just tried you code and I didn't get the error which you mentioned here.
I would like to mention here that I just include a single line
return null;
in the defenation of ExecutarParcelamento method in class Parcelamento .
Please try it once again and let me know if you still face the issue.
Please mark it as the solution if it answers your question.
Cheers ,
Niket
Certified Administrator | Certified Developer
MyBlog
Thank you very much for your answer.
I delete the test class and recreated the class.