Hadamard formalism and Schwarzschild spacetime