The ionized gas flow in the boundary layer on bodies of revolution with porous contour is studied in this paper. The gas electroconductivity is assumed to be a function of the longitudinal coordinate , x. The problem is solved using Saljnikov's version of the general similarity method. This paper is an extension of Saljnikov's generalized solutions and their application to a particular case of magnetohydrodynamic flow. Generalized boundary layer equations have been numerically solved in a four-parametric localized approximation and characteristics of some physical quantities in the boundary layer has been studied.