Magnetic field contribution to soliton propagation and reflection in an inhomogeneous plasma