cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Insight 49, LLC" <insigh...@gmail.com>
Subject Problem Posting with CInclude (please help!)
Date Tue, 11 Mar 2008 00:47:17 GMT
Hi all,

I'm trying to post an xml fragment to a REST web service via cinclude, 
but get the following error.

==== ERROR ====

Mar 9, 2008 1:40:38 PM org.apache.solr.common.SolrException log
SEVERE: org.apache.solr.common.SolrException: missing content stream
       at 
org.apache.solr.handler.XmlUpdateRequestHandler.handleRequestBody(Xml
UpdateRequestHandler.java:114)

==== XSLT ====

<cinclude:includexml ignoreErrors="true" 
xmlns:cinclude="http://apache.org/cocoon/include/1.0">
       <cinclude:src>http://127.0.0.1:8983/solr/update</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>form-name</cinclude:name>
         <cinclude:value><add><sample-fragment-here></add></cinclude:value>
       </cinclude:parameter>
     </cinclude:parameters>
   </cinclude:includexml>

- -

Also, does the CInclude configuration allow setting header parameters? 
Something like...
<cinclude:parameter>
         <cinclude:name>Content-Type</cinclude:name>
         <cinclude:value>text/xml</cinclude:value>
</cinclude:parameter>
<cinclude:parameter>
         <cinclude:name>Charset</cinclude:name>
         <cinclude:value>utf-8</cinclude:value>
</cinclude:parameter>


Thanks for your help!

Dan
--
Dan Hertz's Grape Expectations and Bottle Shots (http://danhertz.com)

Mime
View raw message