You would find Bridget's father from the marriage certificate - you already have her mother Anne in the census.
You might be able to get the marriage details from Scottish records.
Was the older child, William James born Ayr?
If so, his birth details would give you Ann's maiden name.
I think Find My Past, which is a subscription site, has military records. You might be able to find out more about John perhaps.