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 call it in the blaze web service which comes after deployment.
Thanks
--Vijay
5 Replies
- FICOCommunity Manager
Hi Vijay,
What is the reason you want to call a web service from IDE?
Cheers,
Swapnil
- FICOCommunity Manager
it is possible, as I've seen custom provider pull their data from a webservice which then is displayed in the builder IDE/ RMA.
Vijayb if you let us know what you're trying to achive we may be able to help you better.
- FICOCommunity Manager
Hi Spar/Swapnil,
Thanks for your reply!!!
I need to call a webservice which is given by some X application to get some input data , furthur I can use it in my calculation in blaze.
Thanks,
--Vijay
- FICOCommunity 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.
- FICOCommunity Manager
Hi Tom Sheckells,
Thanks for reply...and you are absolutely correct in saying that we should not invoke any external webservice in IDE. we normally invoke all our external webservices before coming to blaze IDE level(i.e in the service code it self). what has made me think in this way is ..i need to send some inputs to the webservice, for which i felt it is more complex to fetch the required data from serivce rather it is easy for me in IDE. Any way we were able to do it in service it self.
once agian thanks for your suggestions and tips for invoking in IDE too (http://blaze.i.lithium.com/i/smilies/16x16_smiley-surprised.gif):
Thanks,
--Vijay