Forum Discussion
FICO
15 years agoCommunity Manager
calling a webservice
calling a webservice Hi Folks, 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 ru...
FICO
15 years agoCommunity Manager
Hi,
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.
Tom
Business Rules Consulting, Inc.
Related Content
Related Content
- 4 years agoPlace FICO® Xpress Optimization ForumFICO® Xpress Optimization Forum2 unread comments2 unread1View0likes2Comments