Could you explain the external WS db_* stuff that you have in mind?
I did some work on integrating gsoap (a C WS toolkit) into postgresql via user-defined functions a while back, I'm not sure if this is what you are getting at?
Cheers, Nick.