We generalize the main result of the first author Van Daele (1998) on the Pontryagin duality of multiplier Hopf algebras with integrals to weak multiplier Hopf algebras with integrals; we illustrate this duality by considering the two natural weak multiplier Hopf algebras associated with a groupoid in detail and show that they are dual to each other in the sense of the above duality.