If it was a regular hand or body soap, there should be no problem. She may vomit, but it isn't dangerous.
If it was a stronger cleaning product, it depends. Call Poison Control and give them the information from the product container.
In the UK, the National Poisons Information number is
In England and Wales: NHS 111 - dial 111
In Scotland: NHS 24 - dial 111
In Republic of Ireland: 01 809 2166