Could not find a suitable Java operation for WSDD

I created a web service for the following code, but I get an exception:

org.apache.axis.InternalException: java.lang.Exception: Could not find the corresponding Java operation for the WSDD operation "andrQues" (0 args) "when the function was called.

public class Ques { public String[] AndrQues(){ String ques[] = {"name??", "age??", "grade??"}; return ques; } } 

Does anyone know why this is happening? Also wsdl is not generated.

+6
source share
2 answers

I found a mistake. You just need to change AndrQues to andrQues, and the program works fine.

+12
source

There is something wrong with your method name, make sure you specify your Name method correctly. take care that your method first uses the last in a lowercase lowercase value.

you just need to change "AndrQues" to "andrQues" , because by default web services take a lowercase name.

it will help ..

+4
source

Source: https://habr.com/ru/post/887604/


All Articles