Hi there, I upgraded to Cocoon 2.1.8 to use the CInclude POST feature (there was previously a bug in it http://issues.apache.org/jira/browse/COCOON-1365 but I checked the source and it looks like the patch has been put in). I've been having some difficulty trying to use it or even check to see if the component is definitely working as expected. At first I tried sending a document like this:
<?xml version="1.0" encoding="ISO-8859-1"?> <cinclude:includexml xmlns:cinclude="http://apache.org/cocoon/include/1.0"> <cinclude:src>http://10.8.21.63:80/lsa_sql_templates</cinclude:src> <cinclude:configuration> <cinclude:parameter> <cinclude:name>method</cinclude:name> <cinclude:value>POST</cinclude:value> </cinclude:parameter> </cinclude:configuration> <cinclude:parameters> <cinclude:parameter> <cinclude:name>text</cinclude:name> <cinclude:value> <lsa:LSA xmlns:lsa="blah">XML Document Goodness</lsa:LSA> </cinclude:value> </cinclude:parameter> </cinclude:parameters> </cinclude:includexml> as per the Wiki StreamGenerator docs (http://wiki.apache.org/cocoon/StreamGenerator?highlight=%28Cinclude%29). I got a "org.xml.sax.SAXParseException: The markup in the document following the root element must be well-formed. context:/http://10.8.21.63:80/lsa_sql_templates - 1:37" though the document before the CInclude looks fine. It might be something to do with the resultant output but I couldn't seem to get that from the pipe. I also quickly tried creating a sanity check by creating the pipeline: <map:match pattern="hollaback"> <map:generate type="stream" /> <map:serialize type="xml" /> </map:match> and calling it (not using the cocoon protocol) though I'm not sure if this would work or not (I got a 500 error for that; so probably not). I also noticed that the CInclude document for 2.1 (http://cocoon.apache.org/2.1/userdocs/cinclude-transformer.html) shows that the POST request is wrapped in a root node. I tried that for both of my tests but that didn't help either. Any ideas on this would be appreciated; even just the confirmation that POST is working correctly for anyone would be a good start. Thanks, Gary ***************************************************************** The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. ***************************************************************** --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]