<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
tanzu wrote:
<blockquote cite="mid:24092604.post@talk.nabble.com" type="cite">
  <pre wrap="">My requirement is to expose drools rules as a web service ,which can be
accessed by any kind of client including .net .I have built a struts based
web application.When the user submits the struts client should be able to
submit the data ,to the web service ,which will execute the rule engine ,and
fire all rules ,and send a response back to the client.You said it correctly
the drools execution server can suffice my need.


My doubts are
1.Is it possible that I dont use guvnor ,and instead use just the drools
expert with drl files with the execution server.
2.The data from the struts client should be converted into xml ,fact object
and sent to the server to be used in the rules.Am I thinking right.

A sample code showing how the client ,sends xml data to server ,and the
response sent back to the client ,will be very helpful to me.

Please help.I have a deadline.:-(
  </pre>
</blockquote>
If you are using Drools 5.0, we have the new Command and Pipeline api
with built in XML marshalling. This was all designed to allow it to be
easily hooked up to any service.<br>
<br>
This unit test shows a large set of examples of working with the XML,
via the pipeline:<br>
<a class="moz-txt-link-freetext" href="http://fisheye.jboss.org/browse/JBossRules/trunk/drools-pipeline/drools-transformer-xstream/src/test/java/org/drools/runtime/pipeline/impl/XStreamBatchExecutionTest.java?r=HEAD">http://fisheye.jboss.org/browse/JBossRules/trunk/drools-pipeline/drools-transformer-xstream/src/test/java/org/drools/runtime/pipeline/impl/XStreamBatchExecutionTest.java?r=HEAD</a><br>
<br>
Mark<br>
<blockquote cite="mid:24092604.post@talk.nabble.com" type="cite">
  <pre wrap="">
tanzu



pkpkpkpk wrote:
  </pre>
  <blockquote type="cite">
    <pre wrap="">Using the Drools execution server, the rules engine can be exposed as a
web
service.

In
<a class="moz-txt-link-freetext" href="http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-guvnor/html_single/index.html">http://hudson.jboss.org/hudson/job/drools/lastSuccessfulBuild/artifact/trunk/target/docs/drools-guvnor/html_single/index.html</a>,
check out section 1.4.7.2

The web service can be invoked using JSON or XML, so, it is possible to
invoke it from any client.

Regards,
Prem


On Sun, Jun 14, 2009 at 6:45 AM, tanzu <a class="moz-txt-link-rfc2396E" href="mailto:tanu421@rediffmail.com">&lt;tanu421@rediffmail.com&gt;</a> wrote:

    </pre>
    <blockquote type="cite">
      <pre wrap="">Can the drools rule engine ,be exposed as a web service or do we need to
write a web service and make an explicit call to rule engine ,using the
working memory.
Is it possible for a .net application to invoke drools rule engine.


Please help as I am a newbie


Thanks
tanzu
--
View this message in context:
<a class="moz-txt-link-freetext" href="http://www.nabble.com/Exposing-the-rule-engine-as-a-web-service-to-be-accessed-by-the-client-tp23961020p23961020.html">http://www.nabble.com/Exposing-the-rule-engine-as-a-web-service-to-be-accessed-by-the-client-tp23961020p23961020.html</a>
Sent from the drools - user mailing list archive at Nabble.com.

_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>

      </pre>
    </blockquote>
    <pre wrap="">_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>


    </pre>
  </blockquote>
  <pre wrap=""><!---->
  </pre>
</blockquote>
<br>
</body>
</html>