Hi Paul,
I have added URL handlers in the Registry to support virtual resources.
All registered URL handlers are invoked before get requests. If a URL
handler found a URL pattern that it can process, it will intercept and
process the request. I have used this to construct resources for
representing comments, comment collections, ratings, etc. For example if
get(...) is called with the URL
"/projects/wsas/clustering.doc;comments",a collection resource is
returned with the URLs of all comments on /projects/wsas/clustering.doc
resource. The CommentCollectionURLHandler intercepts this request and
builds the comment collection resource.
I think we can use the same method for processing simple queries or
applying xslts. For example we can write a XSLTURLHandler to detect the
http://foo.com/resources/paul/my.wsdl?xslt=/resources/general/url.xslt
URL pattern and apply the given xslt on the given resource and return
the result.
Thanks,
Chathura
Paul Fremantle wrote:
Folks
I'm sure someone already has a plan how to do this, but I'm wondering
if we have a way of associating logic with a query.
Here is what I'm thinking:
I have a WSDL stored in the registry - say
http://foo.com/resources/paul/my.wsdl
But I don't want the full WSDL, instead I want to run an XSLT that
extracts the SOAP12 HTTP endpoint URL:
http://foo.com/resources/paul/my.wsdl?url=soap12http
or maybe
http://foo.com/resources/paul/my.wsdl?xslt=/resources/general/url.xslt
Paul
_______________________________________________
Registry-dev mailing list
[email protected]
http://wso2.org/cgi-bin/mailman/listinfo/registry-dev