The role of the boundary in some semilinear Neumann problems