Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

To make sure your parameter is named correctly in the xml you should use:

Code Block

@WebService
public interface HelloWorld {
    String sayHi(@WebParam(name="

...

text")

...

 String text);
}

The @WebParam annotation is necessary as java interfaces do not store the Parameter name in the .class file. So if you leave out the annotation your parameter will be named arg0.

...