I hv created a web service for the following code but am getting an exception:
org.apache.axis.InternalException: java.lang.Exception: Couldn't find a matching Java operation for WSDD operation "andrQues" (0 args)" on invoking the function.
public class Ques {
public String[] AndrQues(){
String ques[] = {"name??", "age??", "grade??"};
return ques;
}
}
Does anyone know why its occuring? Also the wsdl is not getting generated.
I found the error. Just need to change the "AndrQues" to "andrQues" and program runs fine.
There is something wrong with your method name make sure that you have spelled your method Name correct. take care about the thing that use your method first latter in small means lower case.
just u need to change "AndrQues" to "andrQues" because by Default the web-services taking name into the lower case.
this will help..
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With