Broad-band X-ray observations of two typical compact sources by BeppoSAX