I would like to know how to call a webservice from Blaze rule ?
i.e my requirement is the UI will pass a ID and ivoke blaze rule service. With that ID as input my rule need to call a webservice and get the results.
I have thought about this in the past but have not tried to implement it. One caveat is that it is NOT a recommended practice to "go outside" of the rule service to collect data at runtime. It is better to get what data you can and call the rule service, then if it determines that additional data is required, exit and request the data, and finally, restart the request (from the beginning) with the additional data.
Having said that, the only way I have thought to invoke an external web service is to create a class (Java or .NET whichever you are using) and import that class into Blaze. Then, you can instantiate that class and call a method that will invoke the web service and return the results.
Again, the recommendation is don't do it. But, this should work.
Business Rules Consulting, Inc.
Retrieving data ...