Today, soft solder is not much used to bond in barrel liners.
It was used in the past because that's all that was available.
These days an anerobic locking compound is used, and some people use a high strength epoxy.
Epoxy is a little more difficult to work with since it requires a very careful mix of the components and any excess will harden and make a mess to clean up.
These anerobic liquids only cure in an airless space. Put some out on a glass plate and nothing happens.
Put it on a part that's a tight fit that excludes air and the liquid cures.
Loctite makes these in various strengths for various uses, including one for use on shafts.
The liner is slightly roughened up and the hole in the barrel is slightly roughened to give a better bond.
One way to do this to the liner is to leave the lathe marks. These look like ultra fine screw threads.
You often see these marks on military rifle barrels like on AK rifles.
You can also use wet or dry sand cloth to roughen the liner.
The parts are carefully degreased and cleaned, then both are covered with the compound.
Put a piece of plastic or wood in the muzzle to exclude the locker compound from getting in the liner bore.
You have to work quickly because these start to set up fast in tight areas so you need to get the liner in place before it starts to harden.
As the liner is pressed in, the locker compound excess will run down the barrel. Simply put down a pad of paper towel and newspaper to catch it. While it's exposed to air it won't harden and can be cleaned up later.
After 24 hours cure time, simply clean off the uncured excess that is exposed and won't harden.
Then you can finish the chamber and crown the muzzle.
In most cases the best results are to lathe turn the liner so there's a flange on the rear and a corresponding recess in the original barrel.
This flange will positively prevent the liner from de-bonding and sliding forward.
In the case of a high power rifle you have to use some common sense as to whether a liner will stand up.
In most cases, this comes out to actually be a new barrel covered by a thin barrel shroud, similar to the Dan Wesson and S&W two piece barrels.
In short, the original barrel is machined to a fairly thin shell and the liner is left as thick as possible.
Again, you have to use common sense when dealing with an original barrel that's a thin contour.
In those cases this won't allow having a thick enough liner to stand the pressure.