Republican Rep. Tony Gonzales of Texas is seeking to fend off a primary challenge that comes as he faces calls to resign over allegations of having an affair with an aide.