[rules-users] facing problems while adding a Rule to DROOLS using java client?

PC prakash.3098 at gmail.com
Wed Mar 7 04:51:39 EST 2012


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-DROOLS-using-java-client-tp3806068p3806290.html
Sent from the Drools: User forum mailing list archive at Nabble.com.



More information about the rules-users mailing list