AFAIK a Lambert solver ignores the gravitational attraction from the source and target planets, and only takes into consideration the Sun's gravitational acceleration. So if you find the DV required to get from Earth to Mars using a Lambert solver, this would be the DV required if you ignored...