To setup drools-server :
I wrote a PHP client to access the rules service.
$url = ”http://localhost:8090/drools-server/kservice/rest/execute”
$post_data
= file_get_contents("drools-request-ts.xml");
$headers
= array("Content-Type" => 'text/plain; charset=utf-8',"Accept"
=> "text/plain; charset=utf-8");
$rta
= http_post_data($url, $post_data,array('headers' => $headers ));
echo
"Response : ".$rta;
drools-request-ts.xml looks something like this :
<?xml version="1.0" encoding="UTF-8"?>
<batch-execution
lookup="ksession1">
<insert out-identifier="cat0">
<com.ts.Category>
<categoryId>1</categoryId>
<categoryName>Area</categoryName>
<parent1>0</parent1>
</com.ts.Category>
</insert>
<insert out-identifier="conf">
<com.ts.Configuration/>
</insert>
<fire-all-rules/>
</batch-execution>
gudluck !
From:
rules-users-bounces@lists.jboss.org
[mailto:rules-users-bounces@lists.jboss.org] On
Behalf Of agarwalk
Sent: Wednesday, June 22, 2011
2:23 PM
To: rules-users@lists.jboss.org
Subject: [rules-users] Drools
Server - Setup Issues
I am trying to setup drools server but I am running hell lot of issues.
Can you please help me in getting latest drools server war and a sample example
of how to write a client. This will help me a lot because it has killed my lots
of time.
View this message in context: Drools
Server - Setup Issues
Sent from the Drools:
User forum mailing list archive at Nabble.com.