Soft surfaces and a size effect in superdonductivity