I connected a Sony bluetooth keyboard to my iPhone yesterday,
and before that, some other cheap knockoff bluetooth keyboard.
Works with iPad as well.
Although I would LOVE to be proven wrong, I don't believe what you are seeking is possible using an un-jailbroken iPhone. My understanding is that Apple only allows "approved" devices...