Hi Nrusingha,
If your input request has information that could be used as a lookup key in some table, you should be able to parse out that information from the request, look it up in your table to set a context variable for your invoke policy target-url, and then just reference that variable in the invoke policy. As to where that lookup routing table lives, your choices would be off box where you'd have an invoke that retrieves it via an invoke policy and has a document cache policy so you don't hammer your backend all of the time, or if the data is more static, you could have it in a local file that is provided via a Gateway Extension. You'd read the file, also suggest that the local file be in your document cache rules, and then do your lookup.
Best Regards,
Steve Linn
------------------------------
Steve Linn
Senior Consulting I/T Specialist
IBM
------------------------------