Hi Peter,

I had to dig a bit deeper in my memory, before I was able to answer this. 
Almost a year ago, I did some research for the SOLR and Cocoon combination and 
I came across some Apache Forrest plugins that are useful in combination with 
Cocoon. See [1] for more information on this plugin. The plugin contains a 
couple of generators that can handle both GET and POST requests to SOLR. I hope 
this helps you with your problem, and now you don't have to wrap your request 
into a webdav request.

Regards,

Jeroen

[1] http://wiki.apache.org/solr/SolrForrest



-----Original Message-----
From: Binkley, Peter [mailto:[EMAIL PROTECTED]
Sent: Wed 4/16/2008 5:11 PM
To: [email protected]
Subject: RE: webdav transformer
 
Solr speaks POST, and so does the webdav transfomer. I've blogged about this 
here: http://www.wallandbinkley.com/quaedam/?p=104 . I was surprised how 
difficult it was to find an easy way to post blocks of XML (as opposed to 
name-value pairs) without writing code. No doubt this could be added to the 
CInclude transformer without too much trouble. I wonder why there hasn't been 
enough demand to make this happen; it's a fairly common requirement these days, 
I'd have thought. (Not that I've got my act together to post an enhancement 
request, and I haven't looked at 2.2).
 
Peter

________________________________

From: Jeroen Reijn [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, April 16, 2008 1:21 AM
To: [email protected]; [email protected]
Subject: RE: webdav transformer



Hi Robert,

what is the stacktrace that you get from the webbdav transformer that sends the 
request?
Just because I'm curious: solr speaks webdav?

Regards,

Jeroen


-----Original Message-----
From: news on behalf of Robert Goené
Sent: Tue 4/15/2008 8:55 PM
To: [email protected]
Subject:  webdav transformer

Hi!

I try to use the webdav transformer in Cocoon 2.1.10 to
post some data to Solr. When I do not provide a <body>
element, I get the expected error message from Solr:
no data provided. So far so good. When I do provide a
<body> element, I get a very general NullPointerException.

I use the Saxon transformer, because I need some EXSLT
features. Could this explain my problem? Would explicitely
defining the webdav transformer do any good?

Thanks in advance,

Robert


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





Reply via email to