title: Incompatible types in web service java
body: <p>I have this code:</p>
  
  <pre><code>@WebMethod(operationName = "operation")
  public boolean operation(@WebParam(name = "id") int id,
          @WebParam(name = "nombre") String nombre,
          @WebParam(name = "apellido") String apellido,
          @WebParam(name = "edad") int edad,
          @WebParam(name = "ciclo") int ciclo,
          @WebParam(name = "carrera") String carrera,
          @WebParam(name = "especializacion") String especializacion) {
  
      WebServiceapp object = new WebServiceapp();
      boolean estado;
      estado = object.getWebServiceappSoap().insertar(id, nombre, carrera,
              edad, ciclo, carrera, nombre);
      return estado;
  }
  </code></pre>
  
  <p>But I get an error <code>incompatible types required boolean found void</code> on this line:</p>
  
  <pre><code>estado = object.getWebServiceappSoap().insertar(id, nombre, carrera,
          edad, ciclo, carrera, nombre);
  </code></pre>
  
  <p>Why am I getting this error?</p>