[rules-users] how to invoke rest service on drools server with serialized objects

Lisa Horton LHorton at ABCLegal.com
Mon Jul 18 13:02:07 EDT 2011


I installed drools-server (5.2 final) in tomcat and was able to invoke the sample Soap service using SoapUI using Salaboy's excellent blog post instructions.  I have modified knowledge-services.xml to add my rule base using a knowledge agent, and changed camel-server.xml to marshal/unmarshal using serialization.  The drools-server starts up without error, but when I try to call the rest service from my java client, I get  HTTP response: status code = 415, status message = [Unsupported Media Type].

Any suggestions or example of how to do this?  I am attaching my xml files.  the application-Context-rulesTestIntegrationExamples.xml is the spring bean definition for my client java program.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20110718/3df28598/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: applicationContext-rulesTestIntegrationExamples.xml
Type: text/xml
Size: 1397 bytes
Desc: applicationContext-rulesTestIntegrationExamples.xml
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110718/3df28598/attachment.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: camel-server.xml
Type: text/xml
Size: 4053 bytes
Desc: camel-server.xml
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110718/3df28598/attachment-0001.xml 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: knowledge-services.xml
Type: text/xml
Size: 2182 bytes
Desc: knowledge-services.xml
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20110718/3df28598/attachment-0002.xml 


More information about the rules-users mailing list