... until the collector arrives ...

This "blog" is really just a scratchpad of mine. There is not much of general interest here. Most of the content is scribbled down "live" as I discover things I want to remember. I rarely go back to correct mistakes in older entries. You have been warned :)


URL Addressable Gateways

I found Brazil while I was looking for a lightweight proxy server which could be extended to perform some gateway functions related to URL addressability.  The problem is that technologies such as XSLT and XQuery can only retrieve web resources that are URL-addressable and retrieved using a simple HTTP GET.  They cannot use HTTP POST and, by implication, web services.  Furthermore, there is no way to add headers to GET requests.  This rules out the various HTTP authentication schemes.  Even if headers were allowed, few URI resolvers will go through, say, the basic HTTP authentication handshake sequence.  The problem only worsens for higher-level protocols like SSL, WS-Security, etc.

There a number of approaches to solving this problem:

  1. Write custom code that accesses the web resource and then feeds it to the XSLT/XQuery processor.
  2. Write a custom URI resolver that accesses the web resource.
  3. Write extension functions (or elements) for the query processor.
  4. Introduce a gateway into the process converts simple GETs into the required requests.  This could be an HTTP proxy or a servlet/filter/handler.

Blog Archive