We propose a general formalism to calculate boundary correlation functions for Cardy's boundary states obtained by duality constraints. We use the recently proposed free-field construction of boundary states and show that the charge-neutrality condition picks up particular linear combinations of conformal blocks. As an example we study the critical Ising model with free and fixed boundary conditions, and demonstrate that the conventional results based on the mirroring method are reproduced. This formalism thus directly associates algebraically constructed boundary states with boundary correlation functions which are in principle observable or numerically calculable.