Webservice usando AXIS 1.4 dando erro com Array?

Olá,

mesmo alterando de List para Array está dando erro ???Por que será???

qdo vou There is a Web Service here

Click to see the WSDL

gerar dá o erro abaixo usando AXIS 1.4

Mais uma duvda a class Cliente tem que jogar o ponto class junto com a classe .jws ???

abs

   1.    1. AXIS error    
   2.    2.     
   3.    3. Sorry, something seems to have gone wrong... here are the details:    
   4.    4.     
   5.    5. Fault - Error while compiling:  C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java    
   6.    6.     
   7.    7. AxisFault    
   8.    8. faultCode: {http://xml.apache.org/axis/}Server.compileError    
   9.    9. faultSubcode:     
  10.   10. faultString: Error while compiling:  C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java    
  11.   11. faultActor:     
  12.   12. faultNode:     
  13.   13. faultDetail:     
  14.   14.     {}Errors:Error compiling C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java:    
  15.   15. Line 11, column -1:  cannot find symbol    
  16.   16. Line 12, column -1:  cannot find symbol    
  17.   17. Line 12, column -1:  cannot find symbol    
  18.   18. Line 14, column -1:  cannot find symbol    
  19.   19. Line 14, column -1:  cannot find symbol    
  20.   20. Line 20, column -1:  cannot find symbol    
  21.   21. Line 26, column -1:  cannot find symbol    
  22.   22. Line 0, column 0:     
  23.   23. 7 errors    
  24.   
  25. AXIS error Sorry, something seems to have gone wrong... here are the details: Fault - Error while compiling: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java AxisFault faultCode: {http://xml.apache.org/axis/}Server.compileError faultSubcode: faultString: Error while compiling: C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java faultActor: faultNode: faultDetail: {}Errors:Error compiling C:\Program Files\Apache Software Foundation\Tomcat 6.0\webapps\axis\WEB-INF\jwsClasses\Servico.java: Line 11, column -1: cannot find symbol Line 12, column -1: cannot find symbol Line 12, column -1: cannot find symbol Line 14, column -1: cannot find symbol Line 14, column -1: cannot find symbol Line 20, column -1: cannot find symbol Line 26, column -1: cannot find symbol Line 0, column 0: 7 errors  
  26. view plaincopy to clipboardprint?  
  27.   
  28.    1. import java.util.ArrayList;    
  29.    2. import java.util.List;    
  30.    3.     
  31.    4.     
  32.    5.     
  33.    6. public class Servico {    
  34.    7.      public int soma(int valor1, int valor2) {    
  35.    8.           return valor1 + valor2;    
  36.    9.        }     
  37.   10.          
  38.   11.      public Cliente[] getClientes(int codigo){    
  39.   12.          Cliente[] clientes = new Cliente[3];    
  40.   13.              
  41.   14.          Cliente cli = new Cliente();    
  42.   15.          cli.setCodigo(10);    
  43.   16.          cli.setNome("Jose da Silva");    
  44.   17.          cli.setEndereco("Rua 1");    
  45.   18.          clientes[0]=cli;    
  46.   19.              
  47.   20.          cli = new Cliente();    
  48.   21.          cli.setCodigo(20);    
  49.   22.          cli.setNome("Mario da Silva");    
  50.   23.          cli.setEndereco("Rua 2");    
  51.   24.          clientes[1]=cli;    
  52.   25.              
  53.   26.          cli = new Cliente();    
  54.   27.          cli.setCodigo(30);    
  55.   28.          cli.setNome("Um da Silva");    
  56.   29.          cli.setEndereco("Rua 3");    
  57.   30.          clientes[2]=cli;    
  58.   31.              
  59.   32.          return clientes;    
  60.   33.      }    
  61.   34. }    

mais um detalhe :

  • estou usando java 1.5
  • axis 1.4