Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Couldn't find a matching Java operation for WSDD operation

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.

like image 492
penchoco Avatar asked May 09 '11 10:05

penchoco


2 Answers

I found the error. Just need to change the "AndrQues" to "andrQues" and program runs fine.

like image 188
penchoco Avatar answered Sep 30 '22 12:09

penchoco


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..

like image 45
Kishan Bheemajiyani Avatar answered Sep 30 '22 10:09

Kishan Bheemajiyani