Forum Discussion
FICO
15 years agoCommunity Manager
Calling Webservice in blaze IDE??
Calling Webservice in blaze IDE?? Hi, Is there a way to call a webservice from blaze IDE?. we are using dot net version of blaze and need to call a webservice in blaze IDE level, I know we can cal...
FICO
15 years agoCommunity Manager
Hi Vijay,
In general, it is considered a bad practice to call external data sources from within the Blaze runtime. Since the runtime delay of obtaining external data ends up making the decision processing "seem" to take a long time. The preferred design pattern is to obtain all data before calling the rule service for a decision. If some data has a high cost (for example buying an external fraud report), and some "decline" decsions can be made without the data, then call without the data and if it becomes required, exist to the caller with a status that indicates to obtain the data and re-invoke the decision service (just run all the way from the beginning again, don't jump into the middle).
Having said that, you have been warned if you want to continue down this path. The way to call a webservice from the runtime is to write a class that invokes the web service in your processing language (Java or .NET). After it is working, import it into Blaze. Then, instanciate an instance and invoke its method to call the web service and then return the data.
Tom Sheckells
Business Rules Consulting, Inc.