Jeeps Are Us sells the OEM 4- and 7-pin harness that plugs right in to 1997 - 2008 Wranglers.
The 7-pin harness was an option for the Unlimited models and should plug right in. You will have excess wiring if used in a SWB wrangler, which you can shorten or loop and secure. I would assume they didn't offer the 7-pin as a SWB option due to the shorter wheelbase limiting the rated tow capabilities.
Select the Unlimited Model, and your year Wrangler (changes from pass side to driver side). $75 plus shipping.
Here you go: