Hook up a URL or a URLConnection 
  to the appropriate port on the appropriate port on the appropriate server
POST the query using the database's published API
Connect the InputStream you get back to an
  InputSource and use SAX to handle it
DOM works too