Oskar,
StreamGenerator is
expecting its input as a HTTP POST input.
There are two scenarios:
- For the POST requests with mime type of
application/x-www-form-urlencoded the xml data is expected to
be
associated with the name specified in the sitemap parameter. - For the POST requests with mime types: text/plain, text/xml,
application/xml
the xml data is in the body of the POST request and
its length is specified by the value returned
by getContentLength()
method.
For the first scenario, the one way to generate HTTP POST message is to
use http page with a <Form method="post"> tag.
The xml load intended to be processed by StreamGenerator needs to
be associated with some control inside the <Form>. For ex. this
control can be a textarea containing xml document. The StreamGenerator
will pull the xml load out of the control which name matches the value
attribute of "form-name" param specified in the
sitemap.
If the xml document is posted to the Cocoon using other means with mime
types: text/plain, text/xml, application/xml the form-name is
ignored.
Kinga
-----Original Message-----
From: Oskar Casquero [mailto:[EMAIL PROTECTED]] Sent: Monday, October 21, 2002 2:32 PM To: [EMAIL PROTECTED] Subject: simple question about StreamGenerator
|
RE: simple question about StreamGenerator
DZIEMBOWSKI,KINGA (HP-NewJersey,ex2) Mon, 21 Oct 2002 14:30:25 -0700
- simple question about StreamGenerator Oskar Casquero
- DZIEMBOWSKI,KINGA (HP-NewJersey,ex2)