accessing xsd during runtime from handler?
How is it possible to access the auto-generated xsd per endpoint during runtime from a handler? In the handler I do the xsd schema validation of the payload and for this I need the generated xsd for the current endpoint.
Actually I've got an ugly workaround that takes the requestedURL from the ServletRequest of the MessageContext and does a SchemaFactory.newSchema on the URL appended with ?xsd=1. Although I'm caching the validator instances per URL, that will be a performance hit and is not really a nice solution. Are there alternatives?