[Registry-dev] Using our Registry as a PURL server (and also making it work with non-Registry aware clients)

Sanjiva Weerawarana sanjiva at wso2.com
Thu Mar 13 18:52:27 PDT 2008


This can be done by having a media type handler for URL typed values (I 
guess we'd need to define a media type for that) and having it set up to 
write the response as a HTTP 301 with the value of the URL instead of a 
text/plain with the URL value.

This is akin to how Windows implements symlinks sort of.

Sanjiva.

Paul Fremantle wrote:
> So I've talked about this before.
> 
> If we store URLs in the Registry, it would be nice to be able to point 
> to the Registry entry and get back a redirect to the stored URL.
> 
> This is actually the behaviour of PURL servers:
> http://en.wikipedia.org/wiki/Purl
> http://purl.org
> 
> So, what this means is that a client could direct their SOAP client to 
> the registry URL: e.g.
> 
> new 
> Stub("http://reg/wso2registry/resource/services/finance/accounting?redirect"); 
> 
> 
> The client library will then auto redirect to the real URL stored at
> http://reg/wso2registry/resource/services/finance/accounting
> 
> Paul
> 

-- 
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.; http://www.wso2.com/
email: sanjiva at wso2.com; cell: +1 650 265 8311 | +94 77 787 6880

"Oxygenating the Web Service Platform."



More information about the Registry-dev mailing list