[Seaside] Rest and POST method

Philippe Marschall philippe.marschall at gmail.com
Mon Apr 4 07:33:34 UTC 2011


2011/4/4 Olivier Auverlot <olivier.auverlot at gmail.com>:
> Hi,
>
> I continu my experiments with seaside-rest and I have a new problem. I can
> post XML data to the seaside server with the post method. I can detect the
> arrival of the data with the postXML event method.
>
> postXML
>     "I receive XML data with the POST method"
>     <POST>
>     <Consumes: 'text/xml'>
>     <Path: '/postxml'>
>
>     Transcript show: 'XML data detected'.
>
>
>
> But... how to read the content of the request ?

Yeah right, at the moment you can only inject GET fields and not POST
fields. So you have to access them through

    self requestContext request postFields

Cheers
Philippe


More information about the seaside mailing list