organic chemistry - Reaction of soap with water ...
The soap dissolves in the water. Dissolution is not a chemical change because the same chemicals are present, they just interact with each other differently. Like CHM said, soaps act as surfactants and the difference in surface tension improves the survivability of bubbles, thus creating a "foam".