Just to add to Golf Charlie Charlie's learned post:
In addition to the KC135 'Stratotanker', the original B717 designation also applied to the C135 'Stratolifter', the military transport version of the 707. I think 45 of the C135 As and Bs were produced for the USAF MATS (Military Air Transport Service).