Como puedo imprimir lista desde un web service en el cliente
Publicado por juan (8 intervenciones) el 16/04/2018 19:47:45
como puedo mostrar el resultado que me arroja la función getMateria(); en la parte del cliente. en return puerto.getMateria(); me dice que son incompatibles los tipos de list no puede ser convertido a string.
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
package testwebapplicationmaterias;
public class TestWebApplicationMaterias {
public static void main(String[] args) {
//Aquí no se como mostrar el resultado que obtengo de getMateria();
}
private static String listarDatos(){
newwebservicematerias.NewWebServiceMaterias_Service servicio = new newwebservicematerias.NewWebServiceMaterias_Service();
newwebservicematerias.NewWebServiceMaterias puerto = servicio.getNewWebServiceMateriasPort();
return puerto.getMateria();
}
}
Valora esta pregunta


0