Constraining the S-factor for 15N(p,gamma)16O reaction at astrophysical energies