Yet another approach is to build a simple TCP query/respose protocol
which would be conveyed to a gateway that would talk full Z39.50
to a server. E.g. make a gopher/wais translator adapter (gopher
protocol is real simple, with hypercardability a design constraint).
--Ed