What does Baptism of fire mean?

Baptism of fire meaning in Idioms Dictionary

A baptism of fire had been a soldier's first experience of shooting. Any unpleasant experience undergone, often where furthermore a learning experience, is a baptism of fire.