I am making use of the <map:select type="request-method"> for a RESTful
Web Service I'm working on.

In the case where a method e.g. DELETE is not supported by the service I
could include:

<map:otherwise>
    <map:generate type="request"/>
    <map:serialize type="application/xml" status-code="405"
label="Method Not Allowed"/>
</map:otherwise>

as the fallback case in the selector.

However, the HTTP spec. says that when returning a 405 status code, the
response must also include an Allow header with the methods that are
supported, e.g. Allow: GET, PUT, POST.

Is there any way that I can set response headers from the
sitemap/Cocoon?

If not, would it be possible to create a custom serialiser variant of
the XML serializer that accepted parameters for setting response
headers?

I'm using Cocoon 2.2


Regards

Philip Fennell
>XSLT Developer (Content Management Culture)
>
>BBC Future Media & Technology
>Media Village, 201 Wood Lane London W12 7TP 
>BC4 C4, Broadcast Centre
>
>T:     0208 0085318
>

http://www.bbc.co.uk/
This e-mail (and any attachments) is confidential and may contain personal 
views which are not the views of the BBC unless specifically stated.
If you have received it in error, please delete it from your system.
Do not use, copy or disclose the information in any way nor act in reliance on 
it and notify the sender immediately.
Please note that the BBC monitors e-mails sent or received.
Further communication will signify your consent to this.
                                        

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to