Warner finished 19 of 30 passing and James racked up his yardage in 26 carries.
Rookie Tim Hightower ran for a touchdown and Anquan Bolden totaled eight receptions for 82 yards for the Cardinals (1-0).
J.T. O'Sullivan made his first start at quarterback for San Francisco, connecting on 13 of 19 passes for 173 yards, with one interception.
Wisconsin business offering 'therapeutic cuddling' forced to close
Costly malfunction causes beer flood at Boston-area brewery