I am not sure, have you looked in the log file of the drools server (catalina.out if you are running on tomcat)? Also have you configured the server to consume JSON rather than XML?


On Fri, Jan 6, 2012 at 1:26 PM, kofibentum [via Drools] <[hidden email]> wrote:
Thanks a lot for your post. It works for me. But why does curl not return any message when I post the folowing json formatted command:

 curl  -v -H "Content-Type: text/plain" --data "{\"batch-execution\":{\"commands\":[{\"insert\":{\"out-identifier\":\"message\",\"object\":{\"org.test.Message\":{\"text\":\"Hello\"}}}},{\"fire-all-rules\":\"\"}]}}" http://localhost:8080/drools-server/kservice/rest/execute 


If you reply to this email, your message will be added to the discussion below:
http://drools.46999.n3.nabble.com/Sending-requests-to-the-Drools-Execution-Server-from-an-external-source-tp1776466p3638561.html
To unsubscribe from Sending requests to the Drools Execution Server from an external source, click here.
NAML



View this message in context: Re: Sending requests to the Drools Execution Server from an external source
Sent from the Drools: User forum mailing list archive at Nabble.com.