A couple of ideas, but, before using these turn off your water main. Then open the lowest faucet in the house (typically the laundry tub in the basement) and then open every faucet and flush every toilet on the floors above to admit air and drain all of your pipes into the laundry tub.
Then, I would use a trick an old plumber taught me many years ago... get some white bread, remove the crust, and roll it into a ball. Stuff it into the open ends of the pipe and push it in as far as you can. That will hold the water away from your joint. Solder the joint, close all of the upstairs faucets, remove any aerator that is on the laundry tub faucet, and turn the water back on. The bread will come out of the laundry tub faucet as mush. Run the water in the laundry tub faucet for a little while to make sure the pipe is clear.
If that doesn't work, go buy some shark bite fittings and make your repair using those rather than soldering.