The service class does not comply to one or more requirements of the JAX-RPC 1.1 specification, and may not deploy or function correctly

前端 未结 5 494
傲寒
傲寒 2021-01-19 04:51

I am new to Java Webservices, currently I am trying to create a simple SOAP based web-services but getting issue in creating it.

Here is my webservice class:

5条回答
  •  死守一世寂寞
    2021-01-19 05:39

    JAX-RPC 1.1 spec does not specify a clear mapping between the java.util.List object and XML.since you are returning java.util.List type.

    change your method like

    public Team[] getTeams() { return utils.getTeams(); }
    

    And your getTeams() implementation should be match with this.

提交回复
热议问题