Thanks Mike for your quick response.
I was trying to add the rule through the REST API using below code, however
got status code 405.
WebClient client2 = WebClient.create("http://localhost:8080/");
String authorizationHeader = "Basic " +
org.apache.cxf.common.util.Base64Utility.encode("guest:".getBytes());
client2.header("Authorization", authorizationHeader);
Response response=
client2.path("guvnor-5.2.0.Final-tomcat-6.0/rest/packages/Employee/assets").accept("application/xml").put(ruleDescription.getBytes());
System.out.println("status : "+response.getStatus());
whts wrong in this?
-----
PC
--
View this message in context:
http://drools.46999.n3.nabble.com/facing-problems-while-adding-a-Rule-to-...
Sent from the Drools: User forum mailing list archive at
Nabble.com.