Dry and wet partial oxidation in a distributed reactor