|
|
Apache::AxKit::Provider::POST - Allow round tripping of XML via HTTP POST
This module allows you to use POST'ed data as your XML source. This provides a very quick and easy way to configure a WebServices system. All the power of AxKit is available, including plugins and content negotiation.
<Location /WebServices> SetHandler axkit AxContentProvider Apache::AxKit::Provider::POST AxIgnoreStylePI On # You don't want to act on these. AxNoCache On # You don't want to cache AxGzipOutput On # Better network performance AxResetProcessors # Only allow things we have explicity configured. AxResetPlugins AxResetStyleMap AxResetOutputTransformers <AxMediaType screen> AxAddStyleMap text/xsl Apache::AxKit::Language::LibXSLT AxAddRootProcessor .... </AxMediaType> </Location>
It's a good idea to use AxResetProcessor, then you can configure your webservices stuff to only accept locally configured directives. Things not configured will just get bounced back to the client unmodified. Since you can't trust the source data, you only want to handle things you have explicity configured.