<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#ffffff" text="#000000">
    Philippe, thank for your response.<br>
    <br>
    ok, that works for the content type
    application/x-www-form-urlencoded<span class="Apple-style-span"
      style="border-collapse: separate; color: rgb(0, 0, 0);
      font-family: Times; font-style: normal; font-variant: normal;
      font-weight: normal; letter-spacing: normal; line-height: normal;
      orphans: 2; text-indent: 0px; text-transform: none; white-space:
      normal; widows: 2; word-spacing: 0px; font-size: medium;"><span
        class="Apple-style-span" style="font-family:
        Arial,Helvetica,FreeSans,Luxi-sans,'Nimbus Sans L',sans-serif;
        font-size: 12px;"></span></span> but I need to receive xml data.
    With another content type like text/plain or text/xml, the data
    seems to be not parsed. postFields or rawBody are empty.<br>
    <br>
    Best regards<br>
    Olivier ;-)<br>
    <pre wrap="">self requestContext request postFields</pre>
    <br>
    <a class="moz-txt-link-abbreviated" href="http://www.auverlot.fr">www.auverlot.fr</a><br>
    <blockquote
      cite="mid:BANLkTi=bjcGjFauyAp=MfjMz0oMFa3SJ8w@mail.gmail.com"
      type="cite">
      <pre wrap="">2011/4/4 Olivier Auverlot <a class="moz-txt-link-rfc2396E" href="mailto:olivier.auverlot@gmail.com">&lt;olivier.auverlot@gmail.com&gt;</a>:
</pre>
      <blockquote type="cite">
        <pre wrap="">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"
    &lt;POST&gt;
    &lt;Consumes: 'text/xml'&gt;
    &lt;Path: '/postxml'&gt;

    Transcript show: 'XML data detected'.



But... how to read the content of the request ?
</pre>
      </blockquote>
      <pre wrap="">
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
_______________________________________________
seaside mailing list
<a class="moz-txt-link-abbreviated" href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a class="moz-txt-link-freetext" href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>