  We model the dynamics of Magellanic Stream with the ram-pressure scenario in
the logarithmic and power-law galactic halo models and construct numerically
the past orbital history of Magellanic clouds and Magellanic Stream. The
parameters of models include the asymptotic rotation velocity of spiral arms,
halo flattening, core radius and rising or falling parameter of rotation curve.
We obtain the best fit parameters of galactic models through the maximum
likelihood analysis, comparing the high resolution radial velocity data of HI
in Magellanic Stream with that of theoretical models. The initial condition of
the Magellanic Clouds is taken from the six different values reported in the
literature. We find that oblate and nearly spherical shape halos provide a
better fit to the observation than the prolate halos. This conclusion is almost
independent of choosing the initial conditions and is valid for both
logarithmic and power-law models.
